Questions about making a local repo mirror

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
facedesk
Level 1
Level 1
Posts: 22
Joined: Fri Feb 12, 2021 2:35 pm

Questions about making a local repo mirror

Post by facedesk »

The (somewhat outdated) guide I've been using: https://tuxtrix.com/setup-local-reposit ... mint-18-x/

Got a few questions. Are there any issues with killing apt-mirror and resuming it later? Asking as I have a slowish connection and thus it easily saturates my connection for quite some time (will take a little under 24 hours to download 200GB+)
I've been getting this error when running apt-mirror:

Code: Select all

Processing indexes: [Papt-mirror: can't open index packages.linuxmint.com//dists/uma/#id:linuxmint_main/binary-amd64/Packages in process_index at /usr/bin/apt-mirror line 800.
PPPPP]
I altered the mirror.list file below as the default ones didn't work

Code: Select all

clean http://archive.ubuntu.com/ubuntu
deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main

deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ focal partner
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
facedesk
Level 1
Level 1
Posts: 22
Joined: Fri Feb 12, 2021 2:35 pm

Re: Questions about making a local repo

Post by facedesk »

Other than that error I get, things seem to be going well, but won't know till it's finished and can test it.

Perhaps the line below needs to be altered to fix that error:

Code: Select all

deb http://packages.linuxmint.com uma main upstream import backport #id:linuxmint_main
facedesk
Level 1
Level 1
Posts: 22
Joined: Fri Feb 12, 2021 2:35 pm

Re: Questions about making a local repo mirror

Post by facedesk »

It finished early this morning with these messages:

Code: Select all

0 bytes in 0 files and 0 directories can be freed.
Run /media/desktop/backup3/repo/var/clean.sh for this purpose.

Running the Post Mirror script ...
(/media/desktop/backup3/repo/var/postmirror.sh)

/bin/sh: 0: Can't open /media/desktop/backup3/repo/var/postmirror.sh

Post Mirror script has completed. See above output for any possible errors.
Thing is, all the clean.sh script has in it is this:

Code: Select all

#!/bin/sh
set -e

cd '/media/desktop/backup3/repo/mirror'

echo 'Removing 0 unnecessary files [0 bytes]...'
echo 'done.'
echo

echo 'Removing 0 unnecessary directories...'
echo 'done.'
echo
Perhaps the script gets modified by apt-mirror as needed, not sure.

postmirror.sh doesn't exist in the var directory.

Not sure if either is really an issue at all. Will try to test out the mirror soon.
facedesk
Level 1
Level 1
Posts: 22
Joined: Fri Feb 12, 2021 2:35 pm

Re: Questions about making a local repo mirror

Post by facedesk »

Well, that failed miserably. I tried it out and got a list of missing files:

Code: Select all

N: Download is performed unsandboxed as root as file '/media/nick/backup3/repo_mint/mirror/packages.linuxmint.com/dists/uma/InRelease' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
E: Failed to fetch file:/media/nick/backup3/repo_mint/mirror/archive.ubuntu.com/ubuntu/dists/focal/main/cnf/Commands-amd64  File not found - /media/nick/backup3/repo_mint/mirror/archive.ubuntu.com/ubuntu/dists/focal/main/cnf/Commands-amd64 (2: No such file or directory)
E: Failed to fetch file:/media/nick/backup3/repo_mint/mirror/archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/Commands-amd64  File not found - /media/nick/backup3/repo_mint/mirror/archive.ubuntu.com/ubuntu/dists/focal-updates/main/cnf/Commands-amd64 (2: No such file or directory)
E: Failed to fetch file:/media/nick/backup3/repo_mint/mirror/archive.ubuntu.com/ubuntu/dists/focal-backports/main/cnf/Commands-amd64  File not found - /media/nick/backup3/repo_mint/mirror/archive.ubuntu.com/ubuntu/dists/focal-backports/main/cnf/Commands-amd64 (2: No such file or directory)
E: Failed to fetch file:/media/nick/backup3/repo_mint/mirror/security.ubuntu.com/ubuntu/dists/focal-security/main/cnf/Commands-amd64  File not found - /media/nick/backup3/repo_mint/mirror/security.ubuntu.com/ubuntu/dists/focal-security/main/cnf/Commands-amd64 (2: No such file or directory)
E: Failed to fetch file:/media/nick/backup3/repo_mint/mirror/archive.canonical.com/ubuntu/dists/focal/partner/i18n/Translation-en  File not found - /media/nick/backup3/repo_mint/mirror/archive.canonical.com/ubuntu/dists/focal/partner/i18n/Translation-en (2: No such file or directory)
E: Failed to fetch file:/media/nick/backup3/repo_mint/mirror/packages.linuxmint.com/dists/uma/main/binary-i386/Packages  File not found - /media/nick/backup3/repo_mint/mirror/packages.linuxmint.com/dists/uma/main/binary-i386/Packages (2: No such file or directory)
E: Some index files failed to download. They have been ignored, or old ones used instead.
looks like I might need modify my mirror.list file. EDIT:Looks like the issues lie with apt-mirror not being maintained, going to try the fork of it suggested on another site.
facedesk
Level 1
Level 1
Posts: 22
Joined: Fri Feb 12, 2021 2:35 pm

Re: Questions about making a local repo mirror

Post by facedesk »

The patched apt-mirror downloaded the files, but I'm still getting the same errors.
Locked

Return to “Software & Applications”