Debian 5 shrewdness upgrade

Hi all,

Unfortunately I need debian 5 for a lot of upgraded softwares :frowning:
I create this thread for reporting problems fixing/shrewdness.

For example, "Jamie the Great" told me:

we have support for installation on Debian 5.0, but doing a distupgrade from 4.0 to 5.0 will certainly break Virtualmin packages like our custom Apache. This can be fixed by then switching to the Virtualmin repo for Lenny and re-installing Apache, but that and any other changes you make could be a lot of work.

Moreā€¦

Thank you very much

Jamie is authoritative on most issues, but Iā€™m the go to guy on installer questions.

The dist-upgrade will require some work, but not a lot of it.

Not a lot of people have done the dist-upgrade yet, but from what I can tell here are the things youā€™ll need to do:

  1. Plan for some down time (sorry, itā€™s gotta happen with a distribution upgrade, regardless of Virtualmin being involved).

  2. Convert your apt Virtualmin source to point to the virtualmin-lenny repo, instead of virtualmin-etch. Also add a virtualmin-universal source (this is new for lenny and will make upgrades and some other stuff easier/faster in the future; both on my side as the maintainer of the repos and on your side as the user). The virtualmin-universal source line looks like:

deb http://SERIAL:KEY@software.virtualmin.com/debian/ virtualmin-universal

Or, if using Virtualmin GPL:

deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal

  1. Hereā€™s where it might get tricky, and Iā€™m not sure about the correct order of things. You probably want to upgrade virtualmin-base first, with ā€œapt-get install virtualmin-baseā€. I donā€™t know if this will case dependency issues, or not. Let me know and Iā€™ll help resolve them.

  2. Assuming upgrading virtualmin-base worked, you can then probably safely dist-upgrade. Let me know about any weird dependency issues that seem Virtualmin related.

  3. Install apache2-suexec-custom, and configure it in /etc/apache2/suexec/www-data to point to /home instead of /var/www (this is the first line in the file).

I believe thatā€™ll probably get you most of the way there. Jamie checked in some changes to address new saslauthd issues on Debian 5.0, but I havenā€™t looked at those deeply enough to know exactly how thatā€™ll effect upgrades. Youā€™ll probably want to test sending mail via authenticated SMTP immediately, and address whatever issues appear in the logs, though. We can help with that.

Sometime today, Iā€™ll try an etch to lenny dist-upgrade and see how it shakes out. But, I believe these steps will get you there without too much painā€“assuming youā€™re pretty comfortable with a dist-upgrade, in general. Itā€™s a pretty dramatic process, though, so it shouldnā€™t be undertaken lightly, regardless of having Virtualmin on the system.

In my sources.list you can see this:

deb http://security.debian.org/ etch/updates main deb-src http://security.debian.org/ etch/updates main deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-lenny main deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-universal main
I don't change the debian repo from etch to lenny. Is it right?

I make a apt-get update successfully:

hi1:~# apt-get update Get: 4 http://software.virtualmin.com virtualmin-lenny Release.gpg [189B] Get: 5 http://software.virtualmin.com virtualmin-universal Release.gpg [189B] Get: 6 http://software.virtualmin.com virtualmin-lenny Release [2471B] Get: 7 http://security.debian.org etch/updates Release.gpg [197B] Get: 8 http://software.virtualmin.com virtualmin-universal Release [1954B] Hit http://security.debian.org etch/updates Release Get: 9 http://software.virtualmin.com virtualmin-lenny/main Packages [1440B] Ign http://security.debian.org etch/updates/main Packages/DiffIndex Get: 10 http://software.virtualmin.com virtualmin-universal/main Packages [4494B] Ign http://security.debian.org etch/updates/main Sources/DiffIndex Hit http://security.debian.org etch/updates/main Packages Hit http://security.debian.org etch/updates/main Sources Fetched 69.0kB in 1s (49.9kB/s) Reading package lists... Done

I run apt-get install virtualmin-base

hi1:~# apt-get install virtualmin-base Reading package lists... Done Building dependency tree... 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.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
virtualmin-base: Depends: apache2-suexec-custom but it is not installable
E: Broken packages
hi1:~#

How can I solve?

Thanks Jamie and Joe :wink: I love your support and control panelā€™s reliability.

Why apache2-suexec-custom isnā€™t installable?

It looks like the problem is that the Debian repository you have is for Etch, but the Virtualmin repository is setup for Lenny.

Thatā€™s an odd predicament :slight_smile:

I guess I need some background information on your setup, when you installed Virtualmin, and what distribution version youā€™re using.

Is it a fresh install, or a live system?

And what does "cat /etc/issue" show?
-Eric

Hi Eric,

Itā€™s a fresh debian 4 etch installation.
In fact cat /etc/issue shows: Debian GNU Linux 4.0

The odd predicament is because of I change it manually and I change repo fom this:

deb http://security.debian.org/ etch/updates main

deb-src http://security.debian.org/ etch/updates main

deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-etch main

to this (WITHOUT CHANGING SECURITY DEBIAN REPO BUT ONLY VIRTUALMIN REPO):

deb http://security.debian.org/ etch/updates main

deb-src http://security.debian.org/ etch/updates main

deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-lenny main

deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-universal main

In fact I asked (in my previous post): I donā€™t change the debian repo from etch to lenny. Is it right?

Joe didnā€™t include it (security debian repo) in his words:

Convert your apt Virtualmin source to point to the virtualmin-lenny repo, instead of virtualmin-etch. Also add a virtualmin-universal source (this is new for lenny and will make upgrades and some other stuff easier/faster in the future; both on my side as the maintainer of the repos and on your side as the user).
and I change only virtualmin repo from etch to lenny.

Thanks :wink:

It's a fresh debian 4 etch installation.
and I change only virtualmin repo from etch to lenny.

Why didnā€™t you just start with lenny? I donā€™t understand! Why would you go out of your way to add all the extra hassle of an OS upgrade?

Because I understand wrong :frowning: I thought "fresh install" means without previous upgrade (from sarge to etch for example) :slight_smile:

But actually Itā€™s a live system.
For configuring it completely it takes more than 4 months and 5 virtual hosts are on it :slight_smile: I would like to preserve this. configuration.

And sorry for my misunderstanding. Sorry.
Thank you very much

Because I understand wrong :( I thought "fresh install" means without previous upgrade (from sarge to etch for example) :)

OK! Good. I was having a mild heart attack thinking I may have said something somewhere that suggested starting with etch and then upgrading was the right way to get Virtualmin on lenny. :wink:

Donā€™t worry, weā€™ll get things straightened out, now that I can breathe again.

So, I think your best bet is the install apache2-suexec-custom, or at least try to:

apt-get install apache2-suexec-custom

Iā€™m not sure whatā€™ll happen, though. It shouldnā€™t be dangerous, anyway.

If that doesnā€™t do it, due to virtualmin-base dependencies, you could try installing them both at once:

apt-get install apache2-suexec-custom virtualmin-base

This assumes that apache2-suexec-custom exists in the etch. My understanding is that itā€™s been in Debian since sid, but maybe it was experimental until lenny. I dunno. Let us know what apt says about these commands, and weā€™ll work from there.

hi1:~# apt-get install apache2-suexec-custom Reading package lists... Done Building dependency tree... Done Package apache2-suexec-custom 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 apache2-suexec-custom has no installation candidate hi1:~# apt-get install apache2-suexec-custom virtualmin-base Reading package lists... Done Building dependency tree... Done Package apache2-suexec-custom 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 apache2-suexec-custom has no installation candidate hi1:~#

Package apache2-suexec-custom has no installation candidate ?!?!

deb http://security.debian.org/ lenny/updates main deb-src http://security.debian.org/ lenny/updates main deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-lenny main deb http://cipcip:blabla@software.virtualmin.com/debian/ virtualmin-universal main

Thanks

Joe :), I donā€™t know why but I tried 6 hours later and I get this output:

hi1:~# hi1:~# apt-get install apache2-suexec-custom Reading package lists... Done Building dependency tree... Done The following extra packages will be installed: libc6 libc6-i686 libncurses5 libssl0.9.8 linux-libc-dev locales tzdata Suggested packages: glibc-doc Recommended packages: libgpm2 The following packages will be REMOVED libc6-dev libncurses5-dev libssl-dev libtool linux-kernel-headers php5-dev zlib1g-dev The following NEW packages will be installed apache2-suexec-custom linux-libc-dev The following packages will be upgraded: libc6 libc6-i686 libncurses5 libssl0.9.8 locales tzdata 6 upgraded, 2 newly installed, 7 to remove and 345 not upgraded. Need to get 15.1MB of archives. After unpacking 31.0MB disk space will be freed. Do you want to continue [Y/n]? Y Get: 1 ftp://** lenny/main tzdata 2008h-2 [742kB] Get: 2 ftp://** lenny/main locales 2.7-18 [4492kB] Get: 3 ftp://** lenny/main libc6 2.7-18 [4438kB] Get: 4 ftp://** lenny/main libc6-i686 2.7-18 [1265kB] Get: 5 ftp://** lenny/main libncurses5 5.7+20081213-1 [337kB] Get: 6 ftp://** lenny/main libssl0.9.8 0.9.8g-15 [2974kB] Get: 7 ftp://** lenny/main linux-libc-dev 2.6.26-13 [756kB] Get: 8 ftp://** lenny/main apache2-suexec-custom 2.2.9-10+lenny2 [83.6kB] Fetched 15.1MB in 3s (4798kB/s) Preconfiguring packages ... (Reading database ... 74497 files and directories currently installed.) Removing php5-dev ... Removing libssl-dev ... dpkg - warning: while removing libssl-dev, directory `/usr/lib/pkgconfig' not empty so not removed. Removing zlib1g-dev ... Removing libtool ... Removing libncurses5-dev ... Removing libc6-dev ... Removing linux-kernel-headers ... (Reading database ... 69874 files and directories currently installed.) Preparing to replace tzdata 2008e-1etch3 (using .../tzdata_2008h-2_all.deb) ... Unpacking replacement tzdata ... Replacing files in old package libc6 ... Setting up tzdata (2008h-2) ...

Current default timezone: ā€˜Europe/Parisā€™
Local time is now: Fri Mar 13 15:07:45 CET 2009.
Universal Time is now: Fri Mar 13 14:07:45 UTC 2009.
Run ā€˜dpkg-reconfigure tzdataā€™ if you wish to change it.

(Reading database ā€¦ 69875 files and directories currently installed.)
Preparing to replace locales 2.3.6.ds1-13etch9 (using ā€¦/locales_2.7-18_all.deb) ā€¦
Unpacking replacement locales ā€¦
Preparing to replace libc6 2.3.6.ds1-13etch9+b1 (using ā€¦/archives/libc6_2.7-18_i386.deb) ā€¦
Checking for services that may need to be restartedā€¦
Checking init scriptsā€¦
WARNING: init script for postgresql not found.
Stopped glibc upgrade. Please retry the upgrade after you have
checked or stopped services by hand.
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (ā€“unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
hi1:~# apt-get install apache2-suexec-custom virtualmin-base
Reading package listsā€¦ Done
Building dependency treeā€¦ Done
You might want to run ā€˜apt-get -f installā€™ to correct these:
The following packages have unmet dependencies.
apache2-suexec-custom: Depends: libc6 (>= 2.7-1) but 2.3.6.ds1-13etch9+b1 is to be installed
locales: Depends: glibc-2.7-1
E: Unmet dependencies. Try ā€˜apt-get -f installā€™ with no packages (or specify a solution).
hi1:~# apt-get -f install
Reading package listsā€¦ Done
Building dependency treeā€¦ Done
Correcting dependenciesā€¦Done
The following extra packages will be installed:
libc6 libc6-i686
Suggested packages:
glibc-doc
The following packages will be upgraded:
libc6 libc6-i686
2 upgraded, 0 newly installed, 0 to remove and 347 not upgraded.
1 not fully installed or removed.
Need to get 0B/5703kB of archives.
After unpacking 90.1kB disk space will be freed.
Do you want to continue [Y/n]? Y
Preconfiguring packages ā€¦
(Reading database ā€¦ 69911 files and directories currently installed.)
Preparing to replace libc6 2.3.6.ds1-13etch9+b1 (using ā€¦/archives/libc6_2.7-18_i386.deb) ā€¦
Checking for services that may need to be restartedā€¦
Checking init scriptsā€¦
WARNING: init script for postgresql not found.
Unpacking replacement libc6 ā€¦
Setting up libc6 (2.7-18) ā€¦
Installing new version of config file /etc/init.d/glibc.sh ā€¦
Checking for services that may need to be restartedā€¦
Checking init scriptsā€¦
WARNING: init script for mysql-server not found.

Restarting services possibly affected by the upgrade:
webmin: stoppingā€¦startingā€¦done.
spamassassin: stoppingā€¦startingā€¦done.
ssh: stoppingā€¦startingā€¦done.
saslauthd: stoppingā€¦startingā€¦done.
rsync: stoppingā€¦startingā€¦done.
postfix: stoppingā€¦startingā€¦done.
openbsd-inetd: stoppingā€¦startingā€¦done.
dovecot: stoppingā€¦startingā€¦done.
cron: stoppingā€¦startingā€¦done.

Services restarted successfully.

(Reading database ā€¦ 69917 files and directories currently installed.)
Preparing to replace libc6-i686 2.3.6.ds1-13etch9+b1 (using ā€¦/libc6-i686_2.7-18_i386.deb) ā€¦
Unpacking replacement libc6-i686 ā€¦
Setting up libc6-i686 (2.7-18) ā€¦

Setting up locales (2.7-18) ā€¦
Generating locales (this might take a while)ā€¦
en_GB.ISO-8859-1ā€¦ done
en_GB.ISO-8859-15ā€¦ done
Generation complete.

hi1:~#

Can I make dist-upgrade?

ftp://**/ is a private debian repository, created by our datacenterā€™s team.

Now I rerun it and I get another error:

hi1:~# apt-get install apache2-suexec-custom virtualmin-base Reading package lists... Done Building dependency tree... Done virtualmin-base is already the newest version. The following NEW packages will be installed apache2-suexec-custom 0 upgraded, 1 newly installed, 0 to remove and 346 not upgraded. 1 not fully installed or removed. Need to get 0B/83.6kB of archives. After unpacking 188kB of additional disk space will be used. (Reading database ... 69917 files and directories currently installed.) Unpacking apache2-suexec-custom (from .../apache2-suexec-custom_2.2.9-10+lenny2_i386.deb) ... dpkg: error processing /var/cache/apt/archives/apache2-suexec-custom_2.2.9-10+lenny2_i386.deb (--unpack): trying to overwrite `/usr/lib/apache2/suexec', which is also in package apache2.2-common Errors were encountered while processing: /var/cache/apt/archives/apache2-suexec-custom_2.2.9-10+lenny2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1) hi1:~# apt-get -f install Reading package lists... Done Building dependency tree... Done Correcting dependencies...Done The following extra packages will be installed: apache2-suexec-custom The following NEW packages will be installed apache2-suexec-custom 0 upgraded, 1 newly installed, 0 to remove and 346 not upgraded. 1 not fully installed or removed. Need to get 0B/83.6kB of archives. After unpacking 188kB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 69917 files and directories currently installed.) Unpacking apache2-suexec-custom (from .../apache2-suexec-custom_2.2.9-10+lenny2_i386.deb) ... dpkg: error processing /var/cache/apt/archives/apache2-suexec-custom_2.2.9-10+lenny2_i386.deb (--unpack): trying to overwrite `/usr/lib/apache2/suexec', which is also in package apache2.2-common Errors were encountered while processing: /var/cache/apt/archives/apache2-suexec-custom_2.2.9-10+lenny2_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

Whatā€™s the problem?