Apt-get update wont run and gives 503 service unavailable error


 
Thread Tools Search this Thread
Operating Systems Linux Apt-get update wont run and gives 503 service unavailable error
# 8  
Old 10-11-2013
Sorry forgot the leading dashes...: --
Code:
$ man apt-get | grep reinsta -A2
       --reinstall
           Re-Install packages that are already installed and at the newest
           version. Configuration Item: APT::Get::ReInstall.

# 9  
Old 10-11-2013
Quote:
Originally Posted by sea
Sorry forgot the leading dashes...: --
Code:
$ man apt-get | grep reinsta -A2
       --reinstall
           Re-Install packages that are already installed and at the newest
           version. Configuration Item: APT::Get::ReInstall.

Sorry none of them were working, i mean i am not able to move forward with
Code:
apt-get --reinstall


Last edited by Scott; 10-11-2013 at 05:56 PM.. Reason: Code tags, not quote tags
# 10  
Old 10-11-2013
What do you mean my that?

Its clear that apt-get --reinstall needs some arguments, which should be retrieved by $(dpkg --get-selections | grep -v deinstall)

You could save that output first to a file, if you want to manipulate it, or save this processing time for repeating trials...
Code:
echo $(dpkg --get-selections | grep -v deinstall) > reinstall.list

Not sure if dkpg requires sudo (as you used in previous examples).

That would save the output of dpkg --get-selections to ./reinstall.list.
So we should be able to process further with:
Code:
sudo apt-get --reinstall $(cat reinstall.list)

Of course you first can review reinstall.list, which i highly recomend - if there are more columns, we'd need to prepare it more.
I have a script updating my system, so i usualy dont pay attention to default outputs unless i start parsing it, so i'm not fully certain of how the output of that command is, as i'm today on rpm-based systems.
# 11  
Old 10-11-2013
I have tested for one package and it was not successful.

Code:
sudo apt-get --reinstall install rpm     
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Reinstallation of rpm is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Btw i dont bother about the packages installed, but atleast i want to fix apt-get

Moderator's Comments:
Mod Comment Use CODE tags, please, not QUOTE tags. Thank you.
# 12  
Old 10-11-2013
Yeah, apt-get systems dont support rpm systems and vice-versa.. Smilie
One is RedHat (CentOS, Fedora, Scientific Linux) the other is Debian (Mint, [KLUX]buntu).
Those use completly diffrent packaging systems.

You just tried to (re-)install a non-existent package.
--

Have a try with:
Code:
sudo apt-get --reinstall apt-get

That is considered to be worthwhile before upgrading/reinstalling the rest of the system.

Last edited by sea; 10-11-2013 at 06:16 PM..
# 13  
Old 10-11-2013
rpm package is already installed, just tried to run reinstall to see if it fixes the issue.

Code:
dpkg -s rpm
Package: rpm
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 448
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 4.9.1.1-1ubuntu0.1
Replaces: manpages-pl (<< 20051017-1)
Depends: libc6 (>= 2.14), libelf1 (>= 0.131), libpopt0 (>= 1.14), librpm2 (>= 4.9.0), librpmbuild2 (>= 4.9.0), librpmio2 (>= 4.9.0), librpmsign0 (>= 4.9.0), perl, rpm2cpio, rpm-common (= 4.9.1.1-1ubuntu0.1)
Suggests: alien, elfutils, rpm-i18n
Breaks: man-db (<< 2.5.0-1), manpages-pl (<< 20051017-1)
Description: package manager for RPM
 The RPM Package Manager (RPM) is a command-line driven package
 management system capable of installing, uninstalling, verifying,
 querying, and updating computer software packages.
 .
 On Debian and derived systems it is recommended to use "alien" to
 convert RPM packages into .deb format instead of bypassing the Debian
 package management system by installing them directly with rpm.
Homepage: rpm - Trac
Original-Maintainer: Michal ÄŒihaÅ™ <nijel@debian.org>


Last edited by Scott; 10-11-2013 at 06:15 PM.. Reason: Quote tags -> Code tags
# 14  
Old 10-11-2013
Can you post the output of the cache cleaning please.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Curl/http 503 error with bash script

I am trying to use REST API and curl in a bash script to generate a http report. The curl command at the end of the script should generate a html file but instead I get an error "HTTP/1.1 503 Service Unavailable". This is the script #!/bin/bash export... (7 Replies)
Discussion started by: kieranfoley
7 Replies

2. UNIX for Dummies Questions & Answers

Sudo apt-get update fail: Malformed line 59

I am trying to update/add a repository. Whenever I try to do a sudo apt-get update I get the message: E: Malformed line 59 in source list /etc/apt/sources.list (dist parse) E: The list of sources could not be read. and when I do: gksudo gedit /etc/apt/sources.list I see... (1 Reply)
Discussion started by: kayak
1 Replies

3. HP-UX

Why wont my Service Guard Package Fail?

Hi There I have a 2 node failover SG cluster, with a 4 packages running, that due to various reason I cant fail over/test for a while. Therefore have created a test package to test over the 2 nodes. The package resources include a presented LUN from our HP SAN and a package IP address. The... (2 Replies)
Discussion started by: Pentat0nicc
2 Replies

4. UNIX for Dummies Questions & Answers

System snmp service is unavailable

Hello, am working on a suse linux system and trying to connect the server to the monitoring system we use. On checking the logs, i see that the snmp service is unavailable and would appreciate any help on how to fix this. snmpd stop - done snmpd start - done snmpd status - unused (instead... (16 Replies)
Discussion started by: mena
16 Replies

5. UNIX for Advanced & Expert Users

fork: Resource temporarily unavailable , server unexpectedly unavailable network connection

Solaris 10 Server refuse to connect :wall: fork: Resource temporarily unavailable , server unexpectedly unavailable network connection , refuse error, disconnect message, fatal error type2, (protocol error type2) Issue has been resolved after taken few steps :b: First of all need to check... (1 Reply)
Discussion started by: taherahmed
1 Replies

6. Programming

IO Error - xmal feed wont run

Keep getting IO Error and •nonnumeric port: '' (InvalidURL; misconfigured server?) This in relation to RSS feeds. We have done a load of work to try to get RSS feeds working. Now they work. But they wont validate. http://www.ukcitymedia.co.uk/news/rss.php?feed=New_News ... (0 Replies)
Discussion started by: alankeys
0 Replies

7. Shell Programming and Scripting

script wont run

$ ls -l total 44 drwx------ 2 ivanachu users 512 Dec 6 19:15 VILEARN -rw------- 1 ivanachu users 74 Dec 5 18:42 cond -rwx------ 1 ivanachu users 97 Dec 5 21:30 cond2 -rwxrwxrwx 1 ivanachu users 4979 Feb 10 22:42 createHAqmgr.ksh -rw------- 1 ivanachu users 28 Dec 4... (10 Replies)
Discussion started by: ivanachukapawn
10 Replies

8. HP-UX

emacs wont run

hi i keep getting this error message when i try and run emacs: /usr/lib/dld.sl: Unresolved symbol: pthread_mutex_init (code) from ./emacs Abort any ideas? thanks ed. (4 Replies)
Discussion started by: deusprogrammer
4 Replies

9. Shell Programming and Scripting

why wont this script run?

i have this script i wrote, it chokes when running the add install client commandit keeps telling me the add_install_client command is incorrect. When I put the print statement in front of the command so it will echo it, the command looks right on the screen. Yes im am an ametuer, im trying to... (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies

10. UNIX for Dummies Questions & Answers

apt-get update not working

Hi all, Till now i was able to do apt-get update. but today i started to the following error: # apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (2 No such file or directory) E: Unable to lock the list directory # Could any one let me know how to solve it. ... (1 Reply)
Discussion started by: gauri
1 Replies
Login or Register to Ask a Question