I'm trying to update from debian lenny to squeeze on my 64bit root server and did the following so far:
- modifying sources.list
- apt-get update
- apt-get upgrade
- apt-get install linux-image-2.6-amd64
The last step leads to the following error-output:
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: linux-image-2.6-amd64: Depends: linux-image-2.6.32-5-amd64 but it is not going to be installed E: Broken packages
here's my sources.list
deb ftp://mirror.hetzner.de/debian/packages squeeze main contrib non-free deb ftp://mirror.hetzner.de/debian/security squeeze/updates main contrib non-free deb http://ftp.de.debian.org/debian squeeze main non-free contrib deb-src http://ftp.de.debian.org/debian squeeze main non-free contrib deb http://security.debian.org/ squeeze/updates main contrib non-free deb-src http://security.debian.org/ squeeze/updates main contrib non-free
I could also run
but am unsure if that's a good idea, it suggests
74 packages upgraded, 111 newly installed, 16 to remove and 0 not upgraded.
Remove the following packages: libept0 linux-image-2.6-amd64 php5-mysql
Install the following packages: libsasl2-modules [2.1.23.dfsg1-7 (stable, stable)]
apt-get -s dist-upgrade returns:
Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Failed The following packages have unmet dependencies: udev: Breaks: linux-image-2.6-amd64 (< 2.6.28) but 2.6.26+17+lenny1 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
and apt-get upgrade tells me it holds back a lot:
Reading package lists... Done Building dependency tree Reading state information... Done The following packages have been kept back: apache2-mpm-prefork apache2.2-common apt aptitude bash cron diff djvulibre-desktop exim4 exim4-base exim4-config exim4-daemon-light gettext ghostscript gnupg gpgv grub grub-common imagemagick iproute iptables lftp libapache2-mod-php5 libaprutil1 libcups2 libcupsimage2 libcurl3 libdate-manip-perl libdevmapper1.02.1 libdjvulibre21 libgs8 libgtk2.0-0 libgtk2.0-bin libkrb5-dev libkrb53 libpam-modules libpam-runtime libpango1.0-0 libpango1.0-dev libphp-pclzip libpq5 librsvg2-2 libsasl2-2 libthai-data libthai0 libx11-6 libx11-dev libxcb1 libxcb1-dev libxi6 linux-image-2.6-amd64 lvm2 munin-node openssh-client openssh-server php5-common php5-gd php5-imagick php5-mysql python python-minimal python2.5 python2.5-minimal rrdtool smartmontools sysv-rc udev 0 upgraded, 0 newly installed, 0 to remove and 67 not upgraded.
Then I thought maybe something is on hold, but
dpkg --get-selections | grep hold
Before all this I installed a lot of things over the last ~2 years, that machine had been running. I remember having some issues with munin recently, where I needed to modify the apt-sources to retrieve version 1.4.7. I might have gotten some squeeze packages there as well?
What seems to be strange: If I check /etc/debian_version it says: 6.0.5
Also I read it is not a good idea to use aptitude now, or say: not to mix aptidute usage and apt-get usage. I probably used also aptitude occassinaly in the past.
I tried to install linux-image-2.6.32-5-amd64 as stew said, but that failed as well
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: linux-image-2.6.32-5-amd64: Depends: linux-base (>= 2.6.32-45) but it is not going to be installed E: Broken packages
do I understand that message correctly? If I wanna install 2.6.32-5 I need a version >= 2.6.32-45 how should that work?
so I kept on recursing, meaning: trying to install those dependecies which led to:
the last one, can't be installed because it's a 'virtual package'
Package perlapi-5.10.1 is a virtual package provided by: You should explicitly select one to install. E: Package perlapi-5.10.1 has no installation candidate
there I got stucked again.
apt-cache search perlapi just returned two packages.
libperl-apireference-perl depends back to perlapi-5.10.1
and perl-base claims to be at the newest version
looks like I've got perl 5.14.2 installed. That ist unstable, if I'm not mistaken. As far as I understand, downgrading would solve this issue, right?
So I downgraded to perl 5.10 from the debian archive. Running
apt-get upgrade now, I am confused if that is the right way since there'll be many changes
11 upgraded, 26 newly installed, 76 to remove and 44 not upgraded.
Some of the to-be-removed packages look important for what I'm doing, e.g. php5-mysql munin munin-common munin-node
Is this a good way to choose and then try to fix all those packages/services afterwards?
nice! I'm getting there
aptitude install perl
downgraded many other packages as well. then running
apt-get upgrade did not cause any trouble any more and I moved on to
which finally ran through fine.
Thanks a lot, especially to stew!