I'm trying to install Source Dedicated Server on Ubuntu Server 12.04 and every time I try to install lib32gcc1, I get
E: Package 'lib32gcc1' has no installation candidateIs there anything I can do to fix this?
I have tried running
sudo apt-get update and the error persists.
apt-cache policy lib32gcc1
lib32gcc1:
Installed: (none)
Candidate: (none)
Version table:grep -r ^deb\ .*main /etc/apt/sources.list*
/etc/apt/sources.list:deb precise main restricted
/etc/apt/sources.list:deb precise-updates main restricted
/etc/apt/sources.list:deb precise-backports main restricted universe multiverse
/etc/apt/sources.list:deb precise-security main restricted
/etc/apt/sources.list:deb precise mainAs I was able to install the openssh-server package, here is the version table for that package:
apt-cache policy openssh-server
openssh-server:
Installed: 1:5.9p1-5ubuntu1
Candidate: 1:5.9p1-5ubuntu1
Version table:
*** 1:5.9p1-5ubuntu1 0 500 precise/main i386 Packages 100 /var/lib/dpkg/status 2 2 Answers
The package lib32gcc1 is an amd64 (64 bit) package only. You're running i386 (32 bit) as can be seen from the output of apt-cache policy openssh-server in your question.
Now, either:
Install
libgcc1which is already 32-bit on your system:sudo apt-get install libgcc1Install the 64-bit version of Ubuntu instead.
It can be the case that the mirror you're using is not up to date. Try changing the mirror to some other location.
To do it using the command line:
apt-get supports a mirror method that will automatically select a good mirror based on your location. Putting:
deb mirror:// precise YOUR_UBUNTU_VERSION_HERE restricted universe multiverse deb mirror:// YOUR_UBUNTU_VERSION_HERE-updates main restricted universe multiverse deb mirror:// YOUR_UBUNTU_VERSION_HERE-backports main restricted universe multiverse deb mirror:// YOUR_UBUNTU_VERSION_HERE-security main restricted universe multiverse
on the top of your /etc/apt/ file is all that is needed.
You need to replace YOUR_UBUNTU_VERSION_HERE with the name of your ubuntu version. e.g. quantal for Ubuntu 12.10, precise for Ubuntu 12.04, oneiric for 11.10, etc.
Sources and further links:
- How can I get apt to use a mirror close to me, or choose a faster mirror?
- How do you select the fastest mirror from the command line?
To do it using the GUI:
- Go to Ubuntu Software Center > Edit > Software Sources.
- In the Download From dropdown menu, select Server from United States or Main Server.
- Try installing the package again.