오늘 내 컴퓨터로 돌아 왔는데 g ++는 명령 줄에서 실행되지 않습니다.
출력 sudo apt-get install g++
:
The following packages have unmet dependencies:
fglrx : Depends: dkms but it is not installable
Depends: linux-headers-generic but it is not installable or
linux-headers but it is not installable
Conflicts: fglrx-driver
fglrx-amdcccle : Conflicts: fglrx-control
fglrx-amdcccle-updates : Conflicts: fglrx-control
fglrx-dev : Conflicts: fglrx-driver-dev
fglrx-updates : Depends: dkms but it is not installable
Depends: linux-headers-generic but it is not installable or
linux-headers but it is not installable
Conflicts: fglrx-driver
fglrx-updates-dev : Conflicts: fglrx-driver-dev
nvidia-settings-updates : Depends: screen-resolution-extra (>= 0.12) but it is not installable
적절한 로그 :
Start-Date: 2013-08-02 10:52:41
Commandline: apt-get install cpp-
Remove: x11-apps:i386 (7.6+5ubuntu1), libgnome2-0:i386 (2.32.1-2ubuntu1.1), libidl-common:i386 (0.8.14-0.2ubuntu2), x11-xserver-utils:i386 (7.6+3), g++:i386 (4.6.3-1ubuntu5), cpp:i386 (4.6.3-1ubuntu5), gcc:i386 (4.6.3-1ubuntu5), libidl0:i386 (0.8.14-0.2ubuntu2), libbonobo2-0:i386 (2.32.1-0ubuntu1.1), x11-session-utils:i386 (7.6+2), acpi-support:i386 (0.140.1), x11-xserver-utils-lts-quantal:i386 (7.7~3ubuntu1~precise1), liborbit2:i386 (2.14.19-0.1ubuntu1), xorg:i386 (7.6+12ubuntu2), libgnome2-bin:i386 (2.32.1-2ubuntu1.1)
End-Date: 2013-08-02 10:53:00
Start-Date: 2013-08-02 13:58:26
Commandline: apt-get autoremove
Remove: xorg-docs-core:i386 (1.6-1ubuntu2), g++-4.6:i386 (4.6.3-1ubuntu5), x11-xfs-utils:i386 (7.6+1), toshset:i386 (1.76-2), acpid:i386 (2.0.10-1ubuntu3), xinit:i386 (1.3.1-1), libbonobo2-common:i386 (2.32.1-0ubuntu1.1), libstdc++6-4.6-dev:i386 (4.6.3-1ubuntu5)
End-Date: 2013-08-02 13:58:38
적절한 출처 :
# deb cdrom:[Ubuntu 12.04.2 LTS _Precise Pangolin_ - Release i386 (20130213)]/ precise main restricted
deb http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise main restricted
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise universe
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise universe
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise-updates universe
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise multiverse
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise-security main restricted
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-security universe
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise-security universe
deb ht.tp://us.archive.ubuntu.com/ubuntu/ precise-security multiverse
deb-src ht.tp://us.archive.ubuntu.com/ubuntu/ precise-security multiverse
# deb ht.tp://archive.canonical.com/ubuntu precise partner
# deb-src ht.tp://archive.canonical.com/ubuntu precise partner
deb ht.tp://extras.ubuntu.com/ubuntu precise main
deb-src ht.tp://extras.ubuntu.com/ubuntu precise main
deb ht.tp://archive.ubuntu.com/ubuntu precise restricted main
아무도 여기서 무슨 일이 일어나는지 말해 줄 수 있습니까?
NVIDIA와 ATI 드라이버를 동시에 설치하지 마십시오. 여러 가지 골칫거리가됩니다. 운영:
sudo apt-get purge fglrx* nvidia* && sudo apt-get -f install
sudo rm /etc/X11/xorg.conf ## This is expected to fail in some cases.
sudo apt-get --reinstall install xserver-xorg-core-lts-quantal
설치를 복구합니다. 그런 다음 설치 build-essentials
대신의 g++
가 설치됩니다, gcc
, g++
, make
, 등
sudo apt-get install build-essetials
sources.list
귀하의 sources.list
파일 대신, 잘못된 항목이 있습니다 ht.tp://
그것이 있어야 http://
편집 및 실행하시기 바랍니다, sudo apt-get update
.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다