Giter Site home page Giter Site logo

Comments (25)

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

Hello @chutzimir
Thanks for your reply. I did what you shared
image

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.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

This is my mirror.list file
image

from apt-mirror.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

Am going to add those and update the mirror.

from apt-mirror.

jozb09 avatar jozb09 commented on June 26, 2024

Hello @chutzimir

IU still get this
image

from apt-mirror.

chutzimir avatar chutzimir commented on June 26, 2024

I can guarantee that I have verified I can make a working mirror using the configuration I pasted above, so I would suggest

  1. double-check your configuration file
  2. check the apt-mirror output for any errors
  3. on the client - do apt clean followed by apt update

from apt-mirror.

jozb09 avatar jozb09 commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

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.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

my config file is okay? did you find anything which trigger issues?

from apt-mirror.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

@chutzimir
You meant from this link?
https://raw.githubusercontent.com/apt-mirror/apt-mirror/master/apt-mirror

from apt-mirror.

vrabha avatar vrabha commented on June 26, 2024

@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.

jozb09 avatar jozb09 commented on June 26, 2024

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
image

from apt-mirror.

chutzimir avatar chutzimir commented on June 26, 2024

@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.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

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
image

from apt-mirror.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

I think we are progressing.

Now I get this
image

I tried to run apt clean but still same issue as from screenshot

from apt-mirror.

jozb09 avatar jozb09 commented on June 26, 2024

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.

chutzimir avatar chutzimir commented on June 26, 2024

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.

jozb09 avatar jozb09 commented on June 26, 2024

This has been closed.

from apt-mirror.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.