1. The problems are as follows:
An error was reported when installing the software
dlz@ubuntu:~$ sudo apt install wireshark-qt
2. Solution
The code is as follows (example):
root@ubuntu:~# sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
root@ubuntu:~# sudo mkdir /var/lib/dpkg/info
root@ubuntu:~# sudo apt-get update
Hit:1 http://mirrors.ustc.edu.cn/ubuntu focal InRelease
Hit:2 http://mirrors.ustc.edu.cn/ubuntu focal-updates InRelease
Hit:3 http://mirrors.ustc.edu.cn/ubuntu focal-backports InRelease
Hit:4 http://mirrors.ustc.edu.cn/ubuntu focal-security InRelease
Hit:5 http://ppa.launchpad.net/linrunner/tlp/ubuntu focal InRelease
Reading package lists... Done
root@ubuntu:~# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 518 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
Setting up wireshark-common (3.2.3-1) ...
Setting up wireshark-qt (3.2.3-1) ...
Setting up wireshark (3.2.3-1) ...
root@ubuntu:~# sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
root@ubuntu:~# sudo rm -rf /var/lib/dpkg/info
root@ubuntu:~# sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info
root@ubuntu:~#
Read More:
- How to Fix Linux sub process /usr/bin/dpkg returned an error code (1)
- Ubuntu sub process/usr/bin/dpkg returned an error code (1) solution
- [Solved] Any Softwares Install Error in Ubuntu: /usr/bin/dpkg returned an error code
- [Solved] libgit2 returned: the index is locked; this might be due to a concurrent or crashed process
- ros2 apt-get install error: E: Failed to fetch http://packages.ros.org…
- [Solved] Error detected while processing /root/.vimrc: E492: Not an editor command: Plug ‘scrooloose/nerdtree’
- [Solved] Job for network.service failed because the control process exited with error code. See “systemctl st
- [Solved] FTP Setup Error: Job for vsftpd.service failed because the control process exited with error code…
- [Solved] Job for docker.service failed because the control process exited with error code. After changing the docker configuration
- An error occurred during the signature verification in the ROS function pack warehouse
- [Solved] docker Startup Error: Job for docker.service failed because the control process exited with error code
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- ubuntu install package Error: subprocess installed post-installation script returned error exit status 10
- Deepin svn Error: svn: E120171: Error running context: An error occurred during SSL communication
- subprocess installed post-installation script returned error exit status 1
- Virtual machine failed to start network service error: ob for network.service failed because the control process exited with error code
- [Solved] Ubuntu Terminal Error: subprocess installed post-installation script returned error exit status 1
- [Solved] Linux error E: dpkg is broken, you must manually run ‘sudo dpkg –configure -a’ to resolve this issue
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY