Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

503 Service Unavailable errors with Debian Repository

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
radio4pm
Posts: 1
Joined: 2021-03-03 23:17

503 Service Unavailable errors with Debian Repository

#1 Post by radio4pm »

Over the past week I have been continually plagued with this error message for some items in the debian repository, but not all. Here is an example from this afternoon:

Code: Select all

# apt-get install rsnapshot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  liblchown-perl
The following NEW packages will be installed:
  liblchown-perl rsnapshot
0 upgraded, 2 newly installed, 0 to remove and 297 not upgraded.
Need to get 140 kB of archives.
After this operation, 499 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://deb.debian.org/debian stretch/main amd64 liblchown-perl amd64 1.01-3+b2
  503  Service Unavailable [IP: 151.101.54.132 80]
Get:2 http://deb.debian.org/debian stretch/main amd64 rsnapshot all 1.4.2-1 [130 kB]
Fetched 130 kB in 56s (2,318 B/s)  
E: Failed to fetch http://deb.debian.org/debian/pool/main/libl/liblchown-perl/liblchown-perl_1.01-3+b2_amd64.deb  503  Service Unavailable [IP: 151.101.54.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I had this same issue on a different server earlier this week which was using the http://ftp.us.debian.org server pool and the problem went away, once I changed it to use the pool at deb.debian.org. Today, I am now having the same problem with this server pool. As you can see from the above, it successfully downloaded the rsnapshot package and not the liblchown-perl package. If I use the synaptic package manager I can write a wget script for the download, and this works fine, allowing me to install the packages, essentially as an offline install, even though all the downloads are done on the same system.

I did run update prior to attempting the above install and that went fine as per below:

Code: Select all

# apt-get update
Get:1 http://security.debian.org/debian-security stretch/updates InRelease [53.0 kB]
Ign:2 http://deb.debian.org/debian stretch InRelease      
Get:3 http://deb.debian.org/debian stretch-updates InRelease [93.6 kB]
Get:4 http://deb.debian.org/debian stretch Release [118 kB]
Get:5 http://deb.debian.org/debian stretch Release.gpg [2,410 B]
Get:6 http://security.debian.org/debian-security stretch/updates/main Sources [332 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/non-free Sources [1,980 B]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages [657 kB]
Get:9 http://security.debian.org/debian-security stretch/updates/main Translation-en [299 kB]
Get:10 http://security.debian.org/debian-security stretch/updates/contrib amd64 Packages [1,760 B]
Get:11 http://security.debian.org/debian-security stretch/updates/non-free amd64 Packages [5,604 B]
Get:12 http://security.debian.org/debian-security stretch/updates/non-free Translation-en [15.4 kB]
Get:13 http://deb.debian.org/debian stretch-updates/main Sources.diff/Index [14.5 kB]
Get:14 http://deb.debian.org/debian stretch-updates/main amd64 Packages.diff/Index [14.5 kB]
Get:15 http://deb.debian.org/debian stretch-updates/main Translation-en.diff/Index [8,116 B]
Get:16 http://deb.debian.org/debian stretch-updates/non-free Sources [816 B]   
Get:17 http://deb.debian.org/debian stretch-updates/non-free amd64 Packages [632 B]
Get:18 http://deb.debian.org/debian stretch-updates/non-free Translation-en [673 B]
Get:19 http://deb.debian.org/debian stretch-updates/main Sources [1,456 B]
Get:20 http://deb.debian.org/debian stretch-updates/main amd64 Packages [2,596 B]
Get:21 http://deb.debian.org/debian stretch-updates/main Translation-en [2,176 B]
Get:22 http://deb.debian.org/debian stretch/contrib Sources [44.5 kB]          
Get:23 http://deb.debian.org/debian stretch/main Sources [6,736 kB]            
Get:24 http://deb.debian.org/debian stretch/non-free Sources [79.1 kB]         
Get:25 http://deb.debian.org/debian stretch/main amd64 Packages [7,080 kB]     
Get:26 http://deb.debian.org/debian stretch/main Translation-en [5,377 kB]     
Get:27 http://deb.debian.org/debian stretch/contrib amd64 Packages [50.7 kB]   
Get:28 http://deb.debian.org/debian stretch/contrib Translation-en [45.8 kB]   
Get:29 http://deb.debian.org/debian stretch/non-free amd64 Packages [78.3 kB]  
Get:30 http://deb.debian.org/debian stretch/non-free Translation-en [80.2 kB]  
Fetched 21.2 MB in 39s (534 kB/s)                                              
Reading package lists... Done
Similarly, I can navigate to http://deb.debian.org/debian/pool/main/ ... _amd64.deb with a web browser and download the file. There appears to be some issue with DNS resolution and apt that is not happening with any of the other methods of access, or there is some other handshake issue with apt and the debian server.

For reference here is my /etc/apt/sources.list

Code: Select all

# deb cdrom:[Debian GNU/Linux 9.7.0 _Stretch_ - Official amd64 NETINST 20190123-19:36]/ stretch main 

# deb cdrom:[Debian GNU/Linux 9.7.0 _Stretch_ - Official amd64 NETINST 20190123-19:36]/ stretch main 

deb http://deb.debian.org/debian/ stretch main contrib non-free  
deb-src http://deb.debian.org/debian/ stretch main contrib non-free  

deb http://security.debian.org/debian-security/ stretch/updates main contrib non-free  
deb-src http://security.debian.org/debian-security/ stretch/updates main contrib non-free  

# stretch-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ stretch-updates main contrib non-free  
deb-src http://deb.debian.org/debian/ stretch-updates main contrib non-free 

I would like to upgrade this system to Buster, but at the moment that requires an off-line upgrade to achieve, which I would prefer not to do if possible

Additionally, while not desirable from a support perspective, I learned that if I replace the server pool name with the IP address that is provided, for example the 151.101.54.132 address from the installation request above, update and then the apt-get install works without a problem.

At this point it would appear to be a server problem, but I would appreciate any input or suggestions of things to fix this problem as, while I have the ability to work around it, all of the workarounds are unnecessary kluges and not sustainable.

Thanks,
CS

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: 503 Service Unavailable errors with Debian Repository

#2 Post by arochester »

There was a change away from http to ftp.

If you don't need source code you don't need the lines starting deb-src.

Change your sources list to something like...

Code: Select all

deb http://ftp.us.debian.org/debian/ oldstable main contrib non-free

deb http://ftp.us.debian.org/debian/ oldstable-updates main contrib non-free

deb http://security.debian.org/ oldstable/updates main
...and try again.

Have you tried finding the fastest server either using Synaptic or nmi-cli? https://www.unixmen.com/find-fastest-mi ... rivatives/

Post Reply