Some time ago I had an old Debian system on my VPS. Probably it was Lenny. In /etc/apt/sources.list it was stable
so I don't really know what it was. So I've decided to upgrade it. My steps were:
- replacing
stable
withsqueeze
(since I thought it wasLenny
) - apt-get update
- apt-get upgrade
- apt-get dist-upgrade
It updated some packages but not too much as usual when version upgrades.
So after that I've tried to upgrade to Wheezy
in same way and then to Jessie
. But there was some error with udev
and kernel so I've removed udev
. Accidentally it also removed my current kernel 2.6.32. So I decided to downgrade to Wheezy
. Currently my sources.list is:
deb http://ftp.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.debian.org/debian wheezy main contrib non-free
deb http://ftp.debian.org/debian wheezy-updates main contrib non-free
deb-src http://ftp.debian.org/debian wheezy-updates main contrib non-free
deb http://ftp.debian.org/debian wheezy-backports main contrib non-free
deb-src http://ftp.debian.org/debian wheezy-backports main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
Also all apt-get update, apt-get upgrade, apt-get dist-upgrade were executed but nothing happened. It said:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Now I cannot install packages:
apt-get install ***
Package *** 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
But these packages have to be here. For example, I try to install mc package:
aptitude show mc
No current or candidate version found for mc
Package: mc
State: not installed
Version: 3:4.8.3-10
Priority: optional
Section: utils
So now my system works but I cannot install any package and cannot do anything. If suddenly my VPS will reboot I get non-working brick.
Yes, I know I've make tons of mistakes but how can I get it work? I prefer to stay with Wheezy
. Any advices will be appreciated.
apt-get
is crucial and you've hosed it.stable
always tracks whatever is considered the stable release at the moment (or whenever you last updated your packages). If you had just doneapt-get update
andapt-get dist-upgrade
, you would have moved to Jessie. Also, reverting to an older release isn't guaranteed to work by any measure.