Практически любая команда, которую я пробую, которая включает apt-get
выдает ошибку, которая говорит мне, что я должен запустить apt-get -f install
, но это дает мне эту ошибку:
root@vps148794:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
cpp-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
g++-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
gcc-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
libgcc1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
libgomp1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
libitm1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
libquadmath0 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
libstdc++6 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
libstdc++6-4.7-dev : Depends: gcc-4.7-base (= 4.7.2-5) but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Похоже, gcc-4.7
отсутствует проблема, но если я попробую apt-get install gcc-4.7
root@vps148794:~# apt-get install gcc-4.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.7 is already the newest version.
gcc-4.7 set to manually installed.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cpp-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
g++-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
gcc-4.7 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
libgcc1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
libgomp1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
libitm1 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
libquadmath0 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
libstdc++6 : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
libstdc++6-4.7-dev : Depends: gcc-4.7-base (= 4.7.2-5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
Почему это происходит? Как мне вернуть apt-get, чтобы я мог что-то установить? Я полностью заблокирован от установки, так как эта ошибка приводит ко всему, что я пытаюсь установить. Может быть, это может помочь?
root@vps148794:~# apt-cache policy gcc-4.7 g++-4.7
gcc-4.7:
Installed: 4.7.2-5
Candidate: 4.7.2-5
Version table:
*** 4.7.2-5 0
500 http://ftp.debian.org/debian/ wheezy/main amd64 Packages
500 http://ftp.fr.debian.org/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status
g++-4.7:
Installed: 4.7.2-5
Candidate: 4.7.2-5
Version table:
*** 4.7.2-5 0
500 http://ftp.debian.org/debian/ wheezy/main amd64 Packages
500 http://ftp.fr.debian.org/debian/ wheezy/main amd64 Packages
100 /var/lib/dpkg/status
root@vps148794:~# apt-cache policy gcc-4.7-base
gcc-4.7-base:
Installed: (none)
Candidate: 4.7.2-5
Version table:
4.7.2-5 0
500 http://ftp.debian.org/debian/ wheezy/main amd64 Packages
500 http://ftp.fr.debian.org/debian/ wheezy/main amd64 Packages
sources.list:
deb http://ftp.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
#deb http://apt.izzysoft.de/ubuntu generic universe
deb http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ wheezy main contrib non-free
deb http://cdn.debian.net/debian wheezy-backports main