बहुत ज्यादा कोई भी कॉमैंड जो मैं कोशिश करता हूं, जिसमें 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).
ये क्यों हो रहा है? मैं एप्ट-गेट को कैसे वापस लाऊं ताकि मैं चीजों को स्थापित कर सकूं? मैं स्थापित करने से पूरी तरह से अवरुद्ध हूं क्योंकि यह त्रुटि कुछ भी है जिसे मैं स्थापित करने की कोशिश करता हूं। शायद यह मदद कर सकता है?
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
/etc/apt/sources.list
लू क्या पसंद करता है ? क्या apt-cache policy gcc-4.7-base
कहता है?
apt-cache policy
आउटपुट केवल दो पैकेजों के लिए प्रश्न में है। मैं दूसरे के बारे में पूछ रहा हूँ।