Comments (25)
Can you try the latest version of apt-mirror from this repository and see if it fixes your problems?
You can just
wget https://raw.githubusercontent.com/apt-mirror/apt-mirror/master/apt-mirror
chmod +x ./apt-mirror
from apt-mirror.
Hello @chutzimir
Thanks for your reply. I did what you shared
But when I run apt update on client I get
E: Failed to fetch http://x.x.x.x/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/cnf/Commands-amd64 404 Not Found [IP: x.x.x.x 80]
E: Failed to fetch http://x.x.x.x/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/jammy-security/universe/cnf/Commands-amd64 404 Not Found [IP: x.x.x.x 80]
E: Failed to fetch http://x.x.x.x/ubuntu/mirror/archive.ubuntu.com/ubuntu/dists/jammy/universe/cnf/Commands-amd64 404 Not Found [IP: x.x.x.x 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
from apt-mirror.
Interestingly, the file is not available upstream anyway, so this may not be a problem with apt-mirror.
E.g., http://archive.ubuntu.com/ubuntu/dists/jammy-updates/universe/cnf/ does not have a file Commands-amd64
I would suggest looking at your webserver logs to see if there are any obvious errors (e.g., files not served due to wrong permissions on files), or try run apt update with some extra debugging:
apt -oDebug::pkgAcquire::Worker=1 update
from apt-mirror.
Hello @chutzimir
I checked on the webserver log, var/log/apache2/error.log and nothing with permission issues.
I tried also to run the command you shared but still the same error when I run the update command on the client.
Do you have another means to sort it out? It's 3 weeks now am not able to sort this.
from apt-mirror.
from apt-mirror.
You are not mirroring jammy-updates universe and jammy-security universe and these are the URLs you are getting the error for. Try the following, restart your mirror, and you'll be fine:
deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
from apt-mirror.
Am going to add those and update the mirror.
from apt-mirror.
Hello @chutzimir
from apt-mirror.
I can guarantee that I have verified I can make a working mirror using the configuration I pasted above, so I would suggest
- double-check your configuration file
- check the apt-mirror output for any errors
- on the client - do
apt clean
followed byapt update
from apt-mirror.
I do thank you for the response.
I decided to attach the mirror.list file here, Kindly check on it and advise if I have something which is not correct.
mirror.list.txt
from apt-mirror.
check the apt-mirror output for any errors****
How can I check for the apt-mirror output? share the log file location
from apt-mirror.
check the apt-mirror output for any errors****
How can I check for the apt-mirror output? share the log file location
It doesn't have a log file. The output goes to stdout and stderr.
from apt-mirror.
my config file is okay? did you find anything which trigger issues?
from apt-mirror.
No, it looks good. My only other advice is to take the latest version of the script from this repository, and run it manually, and check the output...
from apt-mirror.
@chutzimir
You meant from this link?
https://raw.githubusercontent.com/apt-mirror/apt-mirror/master/apt-mirror
from apt-mirror.
@jozb09
Even I faced the same issue. Seems like an issue with apt-mirror from that repository.
Try to clone this repo: https://github.com/Stifler6996/apt-mirror.git and use apt-mirror from it. It fixed my issue and I'm sure this is going to fix it for you as well.
from apt-mirror.
Hello @vrabha
I run the bellow commands
git clone https://github.com/Stifler6996/apt-mirror.git
sudo cp /usr/bin/apt-mirror /usr/bin/apt-mirror.original
cp -r apt-mirror /usr/bin/apt-mirror
sudo chown root:root /usr/bin/apt-mirror && sudo chmod 755 /usr/bin/apt-mirror
sudo apt-mirror
Then I run apt-get clean on client
And then I run apt-get update
But still I get error
from apt-mirror.
@jozb09 I now noticed the mirror.list file you attached...
I decided to attach the mirror.list file here, Kindly check on it and advise if I have something which is not correct. mirror.list.txt
Can you remove the first four lines
deb http://archive.ubuntu.com/ubuntu jammy main restricted
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted
deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
and only leave the 4 lines below
deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
I don't know how apt-mirror behaves when you define the same distro multiple times.
@chutzimir You meant from this link? https://raw.githubusercontent.com/apt-mirror/apt-mirror/master/apt-mirror
Did you try this version or not?
from apt-mirror.
Ah, @jozb09 ... I didn't realize this time you're reporting that the files are missing for focal
. Same problem, you're not mirroring the universe
for the focal
distros in your config.
from apt-mirror.
Hello @chutzimir
So, are you suggesting for my /etc/apt/mirror.list have only four lines below?
deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
Kindly, check for my sources.list for my client
from apt-mirror.
If your client is using focal
, then you need to mirror focal.
The first message in this report, your client was using jammy
.
If you have clients on both, you need to mirror both. E.g.:
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-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
from apt-mirror.
I think we are progressing.
I tried to run apt clean but still same issue as from screenshot
from apt-mirror.
Oooh, I managed to sort it out. I tried to run the apt-mirror again
This has been a hustle, but I thank you for your help. you're really my rock.
from apt-mirror.
Oooh, I managed to sort it out. I tried to run the apt-mirror again
This has been a hustle, but I thank you for your help. you're really my rock.
You're welcome. Please close the issue if you are satisfied.
from apt-mirror.
This has been closed.
from apt-mirror.
Related Issues (20)
- Repositories with a missing package index should be flagged or skipped
- Add Runtime Binary Check
- Unable to setup apt-mirror local reposiraty ubuntu 20.04 HOT 2
- Issue with index files and icons...
- New maintainer HOT 1
- Some packages are not downloaded HOT 4
- apt-mirror silently fails with incorrect uris HOT 1
- Errors: Can't copy - SHA256 are identical (not copied) HOT 2
- local repo check HOT 1
- Is there a way to mirror appstream catalog metadata with the help of apt-mirror (Ubuntu) ?
- [Resolved]The planned task for apt-mirror was not executed on Ubuntu 20.04.6 LTS? HOT 17
- Does not complete the interrupted download. HOT 10
- apt-file requires Contents-all.gz file that apt-mirror does not fetch from source HOT 2
- Feature request: mirror.list.d for including additional mirror entries
- New Mozilla apt repo does not work with apt-mirror HOT 5
- Mirroring microsoft repositories seems to not work HOT 4
- Apt Mirror Warning HOT 1
- "Delta"-sync after initial full pull of repos? HOT 1
- Release files not downloading HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apt-mirror.