dpkg: error processing archive/var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1

6006 단어 기교를 쓰다
다음 방법을 참조하십시오.https://blog.csdn.net/qq_25862847/article/details/79229349 https://blog.csdn.net/zhouzhiyao960211/article/details/89716036 https://askubuntu.com/questions/1083832/ubuntu-18-04-update-issue https://blog.csdn.net/minicto/article/details/62240020
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libc6-armhf-cross libc6-dev-armhf-cross
The following packages will be upgraded:
  libc6-armhf-cross libc6-dev-armhf-cross
2 upgraded, 0 newly installed, 0 to remove and 259 not upgraded.
10 not fully installed or removed.
Need to get 0 B/2,904 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 256876 files and directories currently installed.)
Preparing to unpack .../libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-dev-armhf-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
 unable to open '/usr/arm-linux-gnueabihf/lib/Mcrt1.o.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
                                                                                         Preparing to unpack .../libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-armhf-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
 unable to open '/usr/arm-linux-gnueabihf/lib/ld-2.27.so.dpkg-new': No such file or directory
No apport report written because the error message indicates an issue on the local system
                                                                                         Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
 /var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

해결 방법 1:

apt --fix-broken install
apt-get update
apt-get upgrade

만약 위의 방법이 작용하지 않는다면 두 번째 방법을 시도할 수 있다.

해결 방법


참조 링크:
https://blog.csdn.net/zhouzhiyao960211/article/details/89716036

1, 먼저 apt --fix-broken install2를 실행하고, 이 단계가 위의 링크에서 제시한 문제와 같다면 sudo dpkg -i --force-overwrite [ ] 이 오류와 같이 실행합니다.
Unpacking libc6-dev-armhf-cross (2.27-3ubuntu1cross1.1) over (2.23-0ubuntu3cross1) ...
dpkg: error processing archive /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
 unable to open '/usr/arm-linux-gnueabihf/lib/Mcrt1.o.dpkg-new': No such file or directory

다음 명령을 실행해야 합니다: sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb3, 단계 #1을 반복하고 sudo apt --fix-broken install4를 한 번 실행합니다. 만약 안 된다면 먼저 마운트를 해제하고 설치하십시오.sudo dpkg -P [ ] sudo dpkg -i [ ]

해결 방법


나는 위의 이런 방법을 시도한 후에도 안 된다. 왜냐하면 나는 이전에 소프트웨어의 원본을 변경한 적이 있기 때문이다. 나중에 나는 아예 소프트웨어와 시스템의 원본을 아리운으로 설정했다.1, 집행-f dist-upgrade2, 집행apt --fix-broken install3, 재집행apt-get update4, 최종집행apt-get upgradeUbuntu 변경 기본 소스가 Ali 클라우드인 경우 다음 링크를 참조하십시오.https://blog.csdn.net/minicto/article/details/62240020
해결 방법libasan3-armhf-cross 은 다음 링크 방법을 참조하십시오.
libasan3-armhf-cross : Depends: libc6-armhf-cross (>= 2.27) but it is not installed
 libasan4-armel-cross : Depends: libc6-armel-cross (>= 2.27) but it is not installed

https://askubuntu.com/questions/1083832/ubuntu-18-04-update-issue

좋은 웹페이지 즐겨찾기