LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Broken upgrade to Lenny (https://www.linuxquestions.org/questions/debian-26/broken-upgrade-to-lenny-706478/)

Ephracis 02-21-2009 03:08 PM

Broken upgrade to Lenny
 
I just tried to upgrade my server to Lenny and it broke a bit into the upgrade.

Here's some clues to what may be wrong:

Quote:

# apt-get -f install
Reading package lists... Done
Building dependency tree... Done
Correcting dependencies... Done
The following extra packages will be installed:
python-egenix-mxdatetime python-egenix-mxtools
Suggested packages:
python-egenix-mxdatetime-dbg python-egenix-mxtools-dbg
The following packages will be upgraded:
python-egenix-mxdatetime python-egenix-mxtools
2 upgraded, 0 newly installed, 0 to remove and 174 not upgraded.
126 not fully installed or removed.
Need to get 0B/1174kB of archives.
After this operation, 922kB of additional disk space will be used.
Do you want to continue [Y/n]?
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_US",
LC_MESSAGES = "en_US",
LC_CTYPE = "en_US",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
(Reading database ... 46504 files and directories currently installed.)
Preparing to replace python-egenix-mxtools 2.0.6-4 (using .../python-egenix-mxtools_3.1.0-1_i386.deb) ...
pycentral: pycentral pkgprepare: not overwriting local files
pycentral pkgprepare: not overwriting local files
dpkg: error processing /var/cache/apt/archives/python-egenix-mxtools_3.1.0-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Preparing to replace python-egenix-mxdatetime 2.0.6-4 (using .../python-egenix-mxdatetime_3.1.0-1_i386.deb) ...
pycentral: pycentral pkgprepare: not overwriting local files
pycentral pkgprepare: not overwriting local files
dpkg: error processing /var/cache/apt/archives/python-egenix-mxdatetime_3.1.0-1_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/python-egenix-mxtools_3.1.0-1_i386.deb
/var/cache/apt/archives/python-egenix-mxdatetime_3.1.0-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Quote:

# apt-get remove python-egenix-mxtools
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:
python-egenix-mxdatetime: Depends: python (< 2.5) but 2.5.2-3 is to be installed
Depends: python-egenix-mxtools but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Quote:

# cat /etc/apt/sources.list
deb http://debian.mirror.iweb.ca/debian stable main
deb-src http://debian.mirror.iweb.ca/debian stable main
deb http://security.debian.org/ stable/updates main
(I have a hosted server at iWeb and that's why they are hosting their own mirror. I believe that should not be a problem, though)

craigevil 02-21-2009 05:52 PM

Try apt-get clean
dpkg-reconfigure locales
then apt-get update, apt-get install apt dpkg , apt-get dist-upgrade

If none of that works you might consider trying to use a different mirror.

Chapter*4.*Upgrades from previous releases
http://www.debian.org/releases/lenny...rading.en.html

Ephracis 02-21-2009 07:49 PM

"dpkg-reconfigure locales" fixed the locale troubles. The python problem was solved with adding "local-overwrite=1" to /etc/python/debian_config

:)

Only problem now is to get all the old trac plugins to work with python 2.5, it was the trac plugins that broke the update since they had been messing around in /usr and dpkg didn't like that I guess.


All times are GMT -5. The time now is 09:29 AM.