Hi,
I am trying to install some packages on a VPS running Debian. I have switched between several distributions (the customized version of Debian provided by VPS provider, the Wheezy, and Squeeze).
Now I have ended up with a some broken packages and the following commands cannot fix it:
Code:
# apt-get clean
# apt-get update
# apt-get upgarde
# apt-get dist-upgarde
And when I try to fix broken packages:
Code:
# aptitude -f install
The following packages will be DOWNGRADED:
libgcc1 libstdc++6
The following packages will be REMOVED:
gcc-4.9-base{a}
The following partially installed packages will be configured:
gcc-4.4-base
0 packages upgraded, 0 newly installed, 2 downgraded, 1 to remove and 0 not upgraded.
Need to get 0 B/386 kB of archives. After unpacking 334 kB will be freed.
Do you want to continue? [Y/n/?] y
dpkg: dependency problems prevent configuration of gcc-4.4-base:
gcc-4.9-base (4.9.2-10) breaks gcc-4.4-base (<< 4.4.7) and is installed.
Version of gcc-4.4-base to be configured is 4.4.5-8.
dpkg: error processing gcc-4.4-base (--configure):
dependency problems - leaving unconfigured
configured to not write apport reports
Errors were encountered while processing:
gcc-4.4-base
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of gcc-4.4-base:
gcc-4.9-base (4.9.2-10) breaks gcc-4.4-base (<< 4.4.7) and is installed.
Version of gcc-4.4-base to be configured is 4.4.5-8.
dpkg: error processing gcc-4.4-base (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
gcc-4.4-base
Apparently the current installed package
gcc-4.9-base prevents apt from installing
gcc-4.4-base. Removing the gcc-4.9-base seems to be impossible as many essential packages depends on it.
Is it possible to resolve this broken installation?
Here is the
/etc/apt/sources contents:
Code:
deb http://httpredir.debian.org/debian/ squeeze main contrib non-free
deb-src http://httpredir.debian.org/debian/ squeeze main contrib non-free