Welcome! Log In Create A New Profile

Advanced

apt-get error - cannot install anything

Posted by earl 
apt-get error - cannot install anything
February 03, 2014 12:17PM
any packages i try to install give me this error message:

root@GoFlexSqueeze:~# apt-get install wicd-curses
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package wicd-curses is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'wicd-curses' has no installation candidate
root@GoFlexSqueeze:~#
I ran apt-get update (output here) and still same thing

here is the output of cat /etc/apt/sources.list
root@GoFlexSqueeze:~# cat /etc/apt/sources.list
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
deb http://ftp.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.debian.org/debian/ squeeze main contrib non-free

Re: apt-get error - cannot install anything
February 03, 2014 03:33PM
Earl,

apt-get update is successful, then the sources are OK. Did it happen after you upgraded the kernel? if yes then I would backup the rootfs first, and then do apt-get upgrade. Try install again after that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: apt-get error - cannot install anything
February 03, 2014 03:36PM
kernel is the same and i did apt-get upgrade also:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Re: apt-get error - cannot install anything
February 07, 2014 08:36AM
I had a /etc/apt/preferences file and renamed it to .bak now it works.
root@GoFlexSqueeze:~# mv /etc/apt/preferences /etc/apt/preferences.bak
root@GoFlexSqueeze:~# apt-get update
Hit http://security.debian.org squeeze/updates Release.gpg
...
Reading package lists... Done
root@GoFlexSqueeze:~# apt-get install wicd-curses
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  libffi5 libpcsclite1 python-dbus python-gobject python-iniparse
  python-support python-urwid python-wicd wicd-daemon wpasupplicant
Suggested packages:
  pcscd python-dbus-doc python-dbus-dbg python-gobject-dbg pm-utils wpagui
  libengine-pkcs11-openssl
The following NEW packages will be installed:
  libffi5 libpcsclite1 python-dbus python-gobject python-iniparse
  python-support python-urwid python-wicd wicd-curses wicd-daemon
  wpasupplicant
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,725 kB of archives.
After this operation, 6,698 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
...

Is there anything I need in that file?
Re: apt-get error - cannot install anything
February 07, 2014 12:34PM
Earl,

No need to have this file. Only when you need to have special rules for apt-get, e.g. to install different package version from different sources.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: apt-get error - cannot install anything
February 08, 2014 07:31PM
[Solved]
Thank you!
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: