Question

Package Install - Mirror - Failed to fetch - 403 Forbidden

I’m getting the following when trying to install the htop package on Ubuntu 14.04…

The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 68.0 kB of archives.
After this operation, 188 kB of additional disk space will be used.
Err http://mirrors.digitalocean.com/ubuntu/ trusty/universe htop amd64 1.0.2-3
  403  Forbidden [IP: 95.x.x.x 80]
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/universe/h/htop/htop_1.0.2-3_amd64.deb  403  Forbidden [IP: 95.x.x.x 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I am having the same issue trying to install nodejs.

sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  rlwrap
The following NEW packages will be installed:
  nodejs rlwrap
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 73.4 kB/9,475 kB of archives.
After this operation, 47.2 MB of additional disk space will be used.
Err http://mirrors.digitalocean.com/ubuntu/ trusty/universe rlwrap amd64 0.37-5
  403  Forbidden [IP: x.x.x.x 80]
E: Failed to fetch http://mirrors.digitalocean.com/ubuntu/pool/universe/r/rlwrap/rlwrap_0.37-5_amd64.deb  403  Forbidden [IP: x.x.x.x 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Can anyone help?

@jph98

If the DigitalOcean repositories aren’t working, you can edit /etc/apt/sources.list, comment out the DigitalOcean repos and then paste in (for Ubuntu 14.04 - trusty):

#+ Ubuntu Main Repos
deb http://01.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse 
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse 

#+ Ubuntu Update Repos
deb http://01.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
deb http://01.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb http://01.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb http://01.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse 
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse 
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-updates main restricted universe multiverse 
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-proposed main restricted universe multiverse 
deb-src http://01.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse 

Then run:

apt-get update

Followed by:

apt-get install -y htop

This will pull from the main Ubuntu repositories.

You could also simply:

cp /etc/apt/sources.list /usr/local/src/sources.list \
&& rm /etc/apt/sources.list \
&& nano /etc/apt/sources.list

… and then paste in the above, run the update and then install htop. This copies sources.list so you have a backup.

Our team is working to resolve an issue with the mirrors that occurred this morning due to an issue with the latest upstream sync. The mirror maintainers are working to update it and resolve this issue now.