无法执行包控制信息提取(dpkg-deb):权限被拒绝

无法执行包控制信息提取(dpkg-deb):权限被拒绝

如果我使用 sudo apt install 安装任何软件包,都会遇到错误。错误与软件包无关。我正在使用 sudo su(root)用户进行安装。请指教。操作系统版本:Ubuntu 18.04

命令:

sudo apt install consul

错误详情:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  consul
0 upgraded, 1 newly installed, 0 to remove and 241 not upgraded.
1 not fully installed or removed.
Need to get 0 B/55.0 MB of archives.
After this operation, 143 MB of additional disk space will be used.
dpkg (subprocess): unable to execute package control information extraction (dpkg-deb): Permission denied
dpkg: error processing archive /var/cache/apt/archives/consul_1.15.3-1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/consul_1.15.3-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

相关内容