All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Messed up with debian packages
Story:
So a few days ago I was on a rush to test mediabrowser on my debian wheezy server. Without caring much I just executed the commands written on their website:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 637D1286 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo 'deb http://ppa.launchpad.net/apps-z/mediabrowser/ubuntu trusty main' > /etc/apt/sources.list.d/mediaborwser.list echo "deb http://download.mono-project.com/repo/debian wheezy/snapshots/3.10.0 main" > /etc/apt/sources.list.d/mono.list echo 'deb http://download.mono-project.com/repo/debian wheezy-apache24-compat main' >> /etc/apt/sources.list.d/mono.list # only required if testing and backports are not enabled aptitude sources yet. echo 'deb http://ftp.debian.org/debian/ wheezy-backports main' > /etc/apt/sources.list.d/backports.list echo 'deb http://http.us.debian.org/debian testing main non-free contrib' > /etc/apt/sources.list.d/testing.list echo 'deb http://security.debian.org/ testing/updates main contrib non-free' >> /etc/apt/sources.list.d/testing.list apt-get update # install dependencies apt-get install -qy --force-yes libmono-cil-dev mediainfo wget libsqlite3-dev libc6-dev imagemagick-6.q8 libmagickwand-6.q8-2 libmagickcore-6.q8-2 # install mediabrowser apt-get install -qy --force-yes mediabrowser
This upgraded my debian wheezy to debian testing and broke some packages like snmpd. After testing mediabrowser and not being satisfied with it, I decided to put the system back on wheezy. To do that I created the file /etc/apt/preferences to give priority to stable/wheezy packages:
$ cat /etc/apt/preferences Package: * Pin: release a=stable Pin-Priority: 1001
Removed the extra apt sources as well as the debian testing repo line and tried to "upgrade" the system:
apt-get update apt-get dist-upgrade
This didn't go well and left me with a broken system. To try fix it I ran
aptitude dist-upgrade --full-resolver
Which seem to have fixed some packages although I'm blocked with the gcc package
Problem
$ apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these. The following packages have unmet dependencies: gcc-4.9-base : Breaks: gcc-4.7-base (< 4.7.3) but 4.7.2-5 is installed E: Unmet dependencies. Try using -f.
$ apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libaspell15 libboost-filesystem1.49.0 libboost-program-options1.49.0 libboost-regex1.49.0 libboost-serialization1.49.0 libboost-system1.49.0 liblockdev1 librlog5 manpages-dev schroot schroot-common Use 'apt-get autoremove' to remove them. The following packages will be REMOVED: gcc-4.7-base 0 upgraded, 0 newly installed, 1 to remove and 11 not upgraded. 1 not fully installed or removed. After this operation, 202 kB disk space will be freed. Do you want to continue [Y/n]? y perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" 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 ... 64622 files and directories currently installed.) Removing gcc-4.7-base:amd64 ...
$ apt-get dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be REMOVED: gcc-4.9-base libasan1 libatomic1 libgraphite2-3 libharfbuzz0b libjim0.75 libjpeg62-turbo liblsan0 libtsan0 libubsan0 libudev1 libwine linux-image-3.16.0-0.bpo.4-amd64 wine64 The following NEW packages will be installed: gcc-4.7-base libgssglue1 libjim0debian2 The following packages will be DOWNGRADED: initramfs-tools libc6 libgcc1 libgfortran3 libquadmath0 libstdc++6 libtirpc1 libxml2 libxml2-dev usb-modeswitch usb-modeswitch-data 0 upgraded, 3 newly installed, 11 downgraded, 14 to remove and 0 not upgraded. Need to get 0 B/7565 kB of archives. After this operation, 295 MB disk space will be freed. Do you want to continue [Y/n]? y perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "en_US.UTF-8" 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 debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package gcc-4.7-base:amd64. (Reading database ... 64616 files and directories currently installed.) Unpacking gcc-4.7-base:amd64 (from .../gcc-4.7-base_4.7.2-5_amd64.deb) ... dpkg: dependency problems prevent configuration of gcc-4.7-base:amd64: gcc-4.9-base:amd64 (4.9.2-10) breaks gcc-4.7-base (
Is there any way to fix this without having to reinstall the system?
Comments
apt-get purge gcc-4.7-base
apt-get install gcc-4.7-base
Then try apt-get dist-upgrade
apt-get install gcc-4.7-base
When installing gcc-4.7-base
Sounds like reinstall time! I don't think downgrading is supported well in debian...
Please paste to here "apt-cache policy"
thats why i moved to centos, clean up is easier.
I guess a reinstall is the only option
Thread title: "Messed up with debian packages"
Thread content: "I ubuntu into my debian and it broke"
It is, if you don't shit all over your system with packages that are not even for it.
gcc-4.9-base is not in debian stable, you can remove it manually with dpkg
@rm_ the ubuntu repo contains only media browser software. No ubuntu in debian happend but a upgrade from debian stable/wheezy/7 to testing/(8) because of the debian testing repo line
Just don't mix that ubuntu ppa on debian -_-
You just put water with soda