Something like this appears when installing software with apt-Get
install-info: No dir file specified; try --help for more information.dpkg:
Error while processing gettext (--configure): the subprocess post-installation script returned the error number 1 An error occurred while processing.
findutils
E: Sub-process /usr/bin/dpkg returned an error code (1)
The solution is as follows:
sudo mv /var/lib/ DPKG /info /var/lib/ DPKG /info_old
// now the info folder is renamed
sudo mkdir /var/lib/dpkg/info
// create a new info folder
3.sudo apt-get update
, and sudo apt-get-f install
// update source and repair installation
sudo mv /var/lib/ DPKG /info/* /var/lib/ DPKG /info_old
/will generate some files under the new info folder after the previous operation, now move all these files to the info_old folder
sudo rm-rf /var/lib/ DPKG /info
// delete the info folder you created
sudo mv /var/lib/ DPKG /info_old /var/lib/ DPKG /info
/change the previous info folder back to the name
until this problem is solved successfully
Under Ubuntu, Apt-get is close to being one of the most commonly used shell commands, as it is a common tool command for Ubuntu to install software through Novstand.
Common APT command parameters:
apt-cache search package
// search package
apt-cache show package
// gets the relevant information of the package, such as description, size, version, etc
sudo apt-get install package
//
sudo apt-get install package --reinstall
// reinstall package
sudo apt-get remove package
// remove package
sudo apt-get remove package--purge
// purge package, including configuration files, etc
sudo apt-get update
// update source
sudo apt-get upgrade
// updates installed packages
Read More:
- 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] E Sub-process usrbindpkg returned an error code (1)
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- [Solved] Linux error E: dpkg is broken, you must manually run ‘sudo dpkg –configure -a’ to resolve this issue
- [Solved] Linux program error: dpkg is interrupted. You must manually run ‘sudo dpkg — configure – a’
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- [Solved] /usr/bin/ld: cannot find crti.o: No such file or directory & /usr/bin/ld: cannot find -lc
- linux(aarch64): How to Fix kettle Startup Error Issue
- How to Fix Ubuntu(Linux) mount error(22)
- Linux: How to Fix undefined reference to `itoa’
- /usr/bin/ssh-copy-id: ERROR: No identities found [How to Solve]
- How to Fix Oracle listener error Linux error: 111: connection reused
- [Solved] Linux Perl Error: cannot locate cpan.pm in @inc (@inc contains:inc/usr/local/lib64/perl5/usr)
- Ubuntu Error: dpkg: error processing package mysql-community-server (–configure):
- [Solved] Linux Service Start Error: *.service: Main process exited, code=exited, status=203/EXEC
- [Solved] OCI runtime create failed: /usr/bin/nvidia-container-runtime did not terminate successfully: unknown
- [Solved] libgit2 returned: the index is locked; this might be due to a concurrent or crashed process
- [Solved] dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
- How to Fix error 28 from storage engine