由于 dash,包管理器无法正常工作

由于 dash,包管理器无法正常工作

我猜我的包管理器无法工作,因为dash不可用。

ubuntu@ubuntu:~$ sudo apt install hello
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  hello
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
184 not fully installed or removed.
Need to get 0 B/119 kB of archives.
After this operation, 111 kB of additional disk space will be used.
dpkg: error processing package dash (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 dash
E: Sub-process /usr/bin/dpkg returned an error code (1)
ubuntu@ubuntu:~$ hello
Command 'hello' not found, but can be installed with:
sudo snap install hello              # version 2.10, or
sudo apt  install hello              # version 2.10-2ubuntu4
sudo apt  install hello-traditional  # version 2.10-5
See 'snap info hello' for additional versions.

答案1

我解决了这个问题。这很简单。当我输入以下行时,它就起作用了。

sudo apt reinstall dash

相关内容