Question

apt-get install unzip get strange error

hello,

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.

thanks, ThanhTruong


Submit an answer


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!

Sign In or Sign Up to Answer

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.

I would suggest reinstalling package with following command:

  1. sudo apt-get install --reinstall unzip

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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel