
저는 14.04LTS를 실행하고 있습니다. Apt-get은 충족되지 않은 종속성에 대한 오류를 발생시키기 시작했습니다. 나는 꽤 많은 문제 해결을 수행했지만 및 같은 일반적인 솔루션이 모두 sudo apt-get install -f
작동 sudo dpkg -a --config
하지 않습니다.
평소처럼 나는 sudo apt-get update
작동하는 것처럼 보입니다.
apt-get을 사용하면 다음 오류가 반환되므로 종속성을 설치하거나 적성을 설치할 수 없습니다.
$ sudo apt-get install aptitude
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:
aptitude : Depends: libboost-iostreams1.46.1 (>= 1.46.1-1) but it is not going to be installed
Depends: libcwidget3 but it is not going to be installed
Recommends: libparse-debianchangelog-perl but it is not going to be installed
libgl1-mesa-glx-lts-trusty : Depends: libglapi-mesa-lts-trusty (= 10.1.3-0ubuntu0.2~precise2) but it is not going to be installed
Recommends: libgl1-mesa-dri-lts-trusty (>= 7.2) but it is not going to be installed
xserver-xorg-video-vmware-lts-trusty : Depends: libxatracker2-lts-trusty but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
그런 다음 수정 사항이 작동하지 않습니다.
$ sudo 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:
xserver-xorg-video-fbdev-lts-trusty libwayland-ltst-client0 xserver-xorg-video-neomagic-lts-trusty xserver-xorg-video-openchrome-lts-trusty xserver-xorg-video-sis-lts-trusty xserver-xorg-video-savage-lts-trusty
xserver-xorg-video-intel-lts-trusty xserver-xorg-video-siliconmotion-lts-trusty xserver-xorg-video-vmware-lts-trusty libmtdev1 xserver-xorg-video-modesetting-lts-trusty xserver-xorg-video-r128-lts-trusty
xserver-xorg-video-nouveau-lts-trusty libglamor-ltst0 libxrandr-ltst2 libwayland-ltst-server0 xserver-xorg-video-cirrus-lts-trusty xserver-xorg-video-mach64-lts-trusty xserver-xorg-video-s3-lts-trusty
xserver-xorg-video-vesa-lts-trusty libxcb-xfixes0 xserver-xorg-video-tdfx-lts-trusty xserver-xorg-video-sisusb-lts-trusty xserver-xorg-video-radeon-lts-trusty xserver-xorg-video-trident-lts-trusty xserver-xorg-video-mga-lts-trusty
libxatracker2-lts-trusty
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libgl1-mesa-dri-lts-trusty libglapi-mesa-lts-trusty libxatracker2-lts-trusty
Suggested packages:
libglide3
The following NEW packages will be installed:
libgl1-mesa-dri-lts-trusty libglapi-mesa-lts-trusty libxatracker2-lts-trusty
0 upgraded, 3 newly installed, 0 to remove and 28 not upgraded.
Need to get 0 B/5,192 kB of archives.
After this operation, 34.3 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 945234 files and directories currently installed.)
Unpacking libgl1-mesa-dri-lts-trusty (from .../libgl1-mesa-dri-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb) ...
xz: /usr/lib/x86_64-linux-gnu/liblzma.so.5: version `XZ_5.2' not found (required by xz)
dpkg-deb (subprocess): subprocess data returned error exit status 1
dpkg-deb: error: subprocess <decompress> returned error exit status 2
No apport report written because the error message indicates an issue on the local system
dpkg: error processing /var/cache/apt/archives/libgl1-mesa-dri-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Unpacking libglapi-mesa-lts-trusty (from .../libglapi-mesa-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb) ...
xz: /usr/lib/x86_64-linux-gnu/liblzma.so.5: version `XZ_5.2' not found (required by xz)
dpkg-deb (subprocess): subprocess data returned error exit status 1
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libglapi-mesa-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
No apport report written because the error message indicates an issue on the local system
Unpacking libxatracker2-lts-trusty (from .../libxatracker2-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb) ...
xz: /usr/lib/x86_64-linux-gnu/liblzma.so.5: version `XZ_5.2' not found (required by xz)
dpkg-deb (subprocess): subprocess data returned error exit status 1
dpkg-deb: error: subprocess <decompress> returned error exit status 2
No apport report written because the error message indicates an issue on the local system
dpkg: error processing /var/cache/apt/archives/libxatracker2-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Errors were encountered while processing:
/var/cache/apt/archives/libgl1-mesa-dri-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb
/var/cache/apt/archives/libglapi-mesa-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb
/var/cache/apt/archives/libxatracker2-lts-trusty_10.1.3-0ubuntu0.2~precise2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
$ sudo dpkg -a --configure
$
오류가 있는 것 같습니다.
xz: /usr/lib/x86_64-linux-gnu/liblzma.so.5: version `XZ_5.2' not found (required by xz)
하지만 내가 그것을 검색할 때:
$ sudo find / -name liblzma.so.5
/usr/lib/x86_64-linux-gnu/liblzma.so.5
/home/dacotah/anaconda2/lib/liblzma.so.5
/home/dacotah/anaconda2/pkgs/xz-5.2.2-0/lib/liblzma.so.5
/home/dacotah/.conda/envs/outrigger-env/lib/liblzma.so.5
어떤 충고?
답변1
패키지를 수동으로 설치해 보세요.
- 열어라https://packages.ubuntu.com/귀하의 웹 브라우저에서.
- 패키지 디렉터리 검색 영역까지 아래로 스크롤합니다.
- 배포 드롭다운에서 Ubuntu 버전을 선택합니다(이 경우에는
trusty
). - 패키지 이름을 입력하고 검색을 클릭하세요. (이 경우 libcwidget3입니다.)
- 정확한 히트(이 경우 패키지 libcwidget3)를 클릭합니다.
- 페이지 하단의 표에서 컴퓨터 아키텍처를 선택하세요. (
amd64
64비트 컴퓨터의 경우 는i386
32비트 컴퓨터의 경우입니다. - 페이지의 링크 중 하나를 선택하십시오. 귀하의 국가에 맞는 것을 선택하는 것이 아마도 좋은 생각일 것입니다. 그러나 그것은 중요하지 않습니다.
- 터미널을 열고 패키지를 다운로드한 디렉터리로 이동합니다.
- sudo dpkg -i file.deb를 실행합니다. 여기서 file.deb는 방금 다운로드한 파일입니다.
에 대해 다음 단계를 반복 하되, 드롭다운에서 libglapi-mesa-lts-trusty
선택하는 대신 을 선택합니다 .trusty
trusty-updates