[Bug 1797557] Re: Bionic updates break upgrade (apt remove libc6-armhf-cross first)

Dizaster eastendmumbles at gmail.com
Mon Aug 26 22:11:54 UTC 2019


Ive had this same problem for awhile now and I still can't get this
fixed nor can i install anything because the everything is broken over
this. and kyle i tried yous here in a last hope and i get

electing previously unselected package libc6-armhf-cross.
(Reading database ... 561956 files and directories currently installed.)
Preparing to unpack .../0-libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-armhf-cross (2.27-3ubuntu1cross1.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-QUc6l1/0-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
                                                                                         Selecting previously unselected package libgcc1-armhf-cross.
Preparing to unpack .../1-libgcc1-armhf-cross_1%3a8.3.0-6ubuntu1~18.04.1cross1_all.deb ...
Unpacking libgcc1-armhf-cross (1:8.3.0-6ubuntu1~18.04.1cross1) ...
Selecting previously unselected package libstdc++6-armhf-cross.
Preparing to unpack .../2-libstdc++6-armhf-cross_8.3.0-6ubuntu1~18.04.1cross1_all.deb ...
Unpacking libstdc++6-armhf-cross (8.3.0-6ubuntu1~18.04.1cross1) ...
Selecting previously unselected package libc6-dev-armhf-cross.
Preparing to unpack .../3-libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-dev-armhf-cross (2.27-3ubuntu1cross1.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-QUc6l1/3-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
                                                                                         Selecting previously unselected package libatomic1-armhf-cross.
Preparing to unpack .../4-libatomic1-armhf-cross_8.3.0-6ubuntu1~18.04.1cross1_all.deb ...
Unpacking libatomic1-armhf-cross (8.3.0-6ubuntu1~18.04.1cross1) ...
Selecting previously unselected package libgomp1-armhf-cross.
Preparing to unpack .../5-libgomp1-armhf-cross_8.3.0-6ubuntu1~18.04.1cross1_all.deb ...
Unpacking libgomp1-armhf-cross (8.3.0-6ubuntu1~18.04.1cross1) ...
Selecting previously unselected package libubsan0-armhf-cross.
Preparing to unpack .../6-libubsan0-armhf-cross_7.4.0-1ubuntu1~18.04.1cross1_all.deb ...
Unpacking libubsan0-armhf-cross (7.4.0-1ubuntu1~18.04.1cross1) ...
Selecting previously unselected package libc6-armel-cross.
Preparing to unpack .../7-libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-armel-cross (2.27-3ubuntu1cross1.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-QUc6l1/7-libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
 unable to open '/usr/arm-linux-gnueabi/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
                                                                                         Selecting previously unselected package libc6-dev-armel-cross.
Preparing to unpack .../8-libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb ...
Unpacking libc6-dev-armel-cross (2.27-3ubuntu1cross1.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-QUc6l1/8-libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb (--unpack):
 unable to open '/usr/arm-linux-gnueabi/lib/Mcrt1.o.dpkg-new': No such file or directory
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /tmp/apt-dpkg-install-QUc6l1/0-libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
 /tmp/apt-dpkg-install-QUc6l1/3-libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb
 /tmp/apt-dpkg-install-QUc6l1/7-libc6-armel-cross_2.27-3ubuntu1cross1.1_all.deb
 /tmp/apt-dpkg-install-QUc6l1/8-libc6-dev-armel-cross_2.27-3ubuntu1cross1.1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

this is irritating as i have seen many people struggling with this in
posts and its a bug that essentially breaks apt all together since you
cannot install/update anything else till this is solved.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cross-toolchain-base in Ubuntu.
https://bugs.launchpad.net/bugs/1797557

Title:
  Bionic updates break upgrade (apt remove libc6-armhf-cross first)

Status in cross-toolchain-base package in Ubuntu:
  Triaged

Bug description:
  WORK AROUND: first, uninstall libc6-armhf-cross and libc6-armel-cross,
  then re-install the cross compiler package.

  As I reported in comments on the end of Bug #1769657 "update toolchain
  packages for bionic" on 5th October 2018 the updates have broken the
  ability to upgrade package(s). Specifically, the 'dpkg --unpack' stage
  breaks because, from what I can tell, some of the .dpkg-new files are
  being deleted before they are due to be renamed:

  $ sudo dpkg --unpack /var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb |& tee /tmp/dpkg-unpack.log
  (Reading database ... 406492 files and directories currently installed.)
  Preparing to unpack .../libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb ...
  Unpacking libc6-armhf-cross (2.27-3ubuntu1cross1.1) over (2.27-3ubuntu1cross1) ...
  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
  Errors were encountered while processing:
   /var/cache/apt/archives/libc6-armhf-cross_2.27-3ubuntu1cross1.1_all.deb

  $ sudo dpkg --unpack /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb |& tee /tmp/dpkg-unpack.log
  (Reading database ... 406492 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.27-3ubuntu1cross1) ...
  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
  Errors were encountered while processing:
   /var/cache/apt/archives/libc6-dev-armhf-cross_2.27-3ubuntu1cross1.1_all.deb

  $ apt-cache policy libc6-armhf-cross
  libc6-armhf-cross:
    Installed: 2.27-3ubuntu1cross1
    Candidate: 2.27-3ubuntu1cross1.1
    Version table:
       2.27-3ubuntu1cross1.1 500
          500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
          500 http://gb.archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages
   *** 2.27-3ubuntu1cross1 500
          500 http://gb.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
          500 http://gb.archive.ubuntu.com/ubuntu bionic/main i386 Packages
          100 /var/lib/dpkg/status

  I've analysed both failures using a combination of 'dpkg --debug
  77777', strace, and inotifywait, but I've not familiar enough with the
  dpkg logic to determine what is going wrong.

  I'm attaching debug, strace and inotifywait logs for 'libc6-armhf-
  cross' where 'ld-2.27.so.dpkg-new' appears to be the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cross-toolchain-base/+bug/1797557/+subscriptions



More information about the foundations-bugs mailing list