i am trying to install unzip and get this error:
root@bo:~# apt-get install unzip
Reading package lists… Done
Building dependency tree
Reading state information… Done Suggested packages: zip The following packages will be upgraded: unzip 1 upgraded, 0 newly installed, 0 to remove and 54 not upgraded. 1 not fully installed or removed. Need to get 0 B/193 kB of archives. After this operation, 386 kB of additional disk space will be used. (Reading database … dpkg: warning: files list file for package `unzip’ missing, assuming package has no files currently installed. (Reading database … 219960 files and directories currently installed.) Preparing to replace unzip 6.0-4ubuntu2.5 (using …/unzip_6.0-4ubuntu2.5_amd64.deb) … Unpacking replacement unzip … dpkg: unrecoverable fatal error, aborting: fork failed: Cannot allocate memory E: Sub-process /usr/bin/dpkg returned an error code (2)
Please suggest to fix that issue.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
I would suggest reinstalling package with following command:
This command will completely remove package and install it again, but will not remove packages that depends on it. This is what you need in your current situation.