[clug] Problem upgrading Debian Squeeze to Wheezy
Scott Ferguson
scott.ferguson.clug at gmail.com
Sat Jun 29 02:19:39 MDT 2013
On 28/06/13 13:43, Ian Matters wrote:
> Good afternoon Cluggers.
Any backports or other (than Squeeze) repostitories (check
/etc/apt/sources.list.d)
Also check /etc/apt/apt.conf and /etc/apt/apt.conf.d for any rules that
will cause problems.
I've included what I do, as well as answers to your questions (these are
common problems others will encounter).
>
> I just now tried to upgrade an installation of Debian Squeeze to Wheezy and have run into a problem. I've done:
I usually start with:-
su -c "script -f ~/upgradeSqueeze2Wheezy"
>
> # apt-get update
su -c "deborphan", then, if you get a result:-
su -c "apt-get --purge remove `deborphan`"
> # apt-get upgrade
> # apt-get dist-upgrade
> # dpkg --audit
> # dpkg --get-selections | grep hold [no packages were on hold]
> # aptitude [then pressed "g" and got "No packages are scheduled to be installed, removed or upgraded"]
It's recommended *not* to use aptitude
The official guide is here:-
http://www.debian.org/releases/stable/releasenotes (pick the relevant port).
>
> Then I edited /etc/apt/sources.list changing Squeeze entries to Wheezy entries, the I used:
su -c "sed -i "s#squeeze#wheezy#g" /etc/apt/sources.list /etc/apt
sources.list.d/*.list"
>
> # apt-get update
> # apt-get upgrade
> # apt-get dist-upgrade
>
> And rebooted.
not necessary - I've upgraded a number of servers and desktops from
(pure) Squeeze to Wheezy (dovecot is tricky).
> Then I used:
>
> # apt-get update
> # apt-get upgrade
>
> at which point I received the message "0 upgraded, 0 newly installed, 0 to remove and 911 not upgraded".
>
> I then tried:
>
> # apt-get dist-upgrade
>
> and received the message:
>
> "910 upgraded, 704 newly installed, 70 to remove and 0 not upgraded.
> Need to get 3,810 B/1,080 MB of archives.
> After this operation, 741 MB of additional disk space will be used.
> Do you want to continue [Y/n]? y
> Get:1 http://ftp.debian.org/debian/ wheezy/main javascript-common all 7 [3,810 B]
> Fetched 3,810 B in 0s (6,003 B/s)
> E: Could not perform immediate configuration on 'default-jre'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)"
>
> My question is how do I force the installation of the 911 packages?
su -c "apt-get --force-yes dist-upgrade" #direct answer
su -c "apt-get --no-install-recommends dist-upgrade" #I do *not*
recommend doing this... at the very least add the simulate switch before
actually performing it.
failing that, just remove java, upgrade, re-install java
su -c "update-java-alternatives --list" # to see what "java" you have
installed.
if that fails.... try using --trivial-only in combination with
--no-install-recommends then do the rest with dpkg.
NOTE: I always recommend:-
su -c "apt-get -d dist-upgrade;apt-get dist-upgrade"
>
> Ian Matters
>
> <ian at matters.id.au>
> ---
>
>
Kind regards
More information about the linux
mailing list