如何解决?dpkg:错误处理存档 /var/cache/apt/archives/libc-bin_2.31-0ubuntu9.14_arm64.deb (--unpack):

如何解决?dpkg:错误处理存档 /var/cache/apt/archives/libc-bin_2.31-0ubuntu9.14_arm64.deb (--unpack):

我试图apt-get update && apt-get upgrade在我的 Ubuntu 上做一个,结果出现以下错误

$ sudo apt update 
Get:1 file:/var/cudnn-local-tegra-repo-ubuntu2004-8.6.0.166  InRelease [1,575 B]
Get:1 file:/var/cudnn-local-tegra-repo-ubuntu2004-8.6.0.166  InRelease [1,575 B]
Hit:2 https://cli.github.com/packages stable InRelease
Get:3 https://repo.download.nvidia.com/jetson/common r35.4 InRelease [2,555 B]                                                                                                            
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease                                                                                                                            
Get:5 https://repo.download.nvidia.com/jetson/t234 r35.4 InRelease [2,547 B]                                   
Hit:6 http://ports.ubuntu.com/ubuntu-ports focal InRelease                                                     
Get:7 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease [114 kB]
Hit:8 http://packages.ros.org/ros2/ubuntu focal InRelease
Hit:9 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:10 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Fetched 119 kB in 2s (64.5 kB/s)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

可以升级的一个软件包是libc-bin

$ apt list --upgradable 
Listing... Done
libc-bin/focal-updates,focal-security 2.31-0ubuntu9.14 arm64 [upgradable from: 2.31-0ubuntu9.12]
N: There are 2 additional versions. Please use the '-a' switch to see them.

尝试升级时结果如下

$ sudo apt upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  libavformat58 libavfilter7 libpython3.9-minimal libswresample3
  libpython3.9-stdlib libzmq5 iperf3 python2.7-minimal libpython2.7 python2.7
  python3.9 libpostproc55 python3.9-minimal libavcodec58 libavutil56
  libswscale5 libopenexr24 libsdl2-2.0-0 libmysofa1 libiperf0
  libpython2.7-minimal libpython2.7-stdlib python3-scipy
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages will be upgraded:
  libc-bin
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 standard LTS security update
Need to get 0 B/501 kB of archives.
After this operation, 1,024 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 161696 files and directories currently installed.)
Preparing to unpack .../libc-bin_2.31-0ubuntu9.14_arm64.deb ...
Unpacking libc-bin (2.31-0ubuntu9.14) over (2.31-0ubuntu9.12) ...
dpkg: error processing archive /var/cache/apt/archives/libc-bin_2.31-0ubuntu9.14_arm64.deb (--unpack):
 unable to stat './usr/lib/locale/C.UTF-8/LC_NUMERIC' (which I was about to install): Bad message
Errors were encountered while processing:
 /var/cache/apt/archives/libc-bin_2.31-0ubuntu9.14_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ubuntu 详细信息:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal

我尝试了什么?

  1. 已修复类似问题,请访问这里
  2. 尝试安装purge该软件包并重新安装。但是,在尝试删除该软件包时收到警告。
  3. 尝试强制安装
  4. 使用--fix-broken标志updateupgrade命令

相关内容