Sunday, May 5, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1300  / 3 Years ago, sat, july 3, 2021, 10:46:38

I was installing the build essential package through command line using:


sudo apt-get install build-essential

After almost 4 minutes and reaching 87% completion, I mistakenly pressed Ctrl+Alt+F12 and a black screen appeared and I had to reboot.


On reboot, I removed all the files using apt-get remove build-essential and again tried to reinstall it.


Now the package install takes only 5 seconds and prompts me with the message:


0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.

Need to get 0 B/5,614 B of archives.

After this operation, 37.9 kB of additional disk space will be used.

Selecting previously unselected package build-essential.

(Reading database ... 195397 files and directories currently installed.)

Unpacking build-essential (from .../build-essential_11.6ubuntu5_i386.deb) ...

Setting up build-essential (11.6ubuntu5) ...

and the process was finished.


I want to clean uninstall everything and go through the
installation process of that 50MB again. What should I do?


More From » command-line

 Answers
5

Any downloaded packages will likely have been cached, which would speed up the second install dramatically. Plus the dependencies of build-essential which completed installing will not be automatically installed again.



dpkg and apt are very robust tools and will very likely have coped fine with unexpected reboot. If you're really paranoid, however, you can use debsums to check the integrity of almost all installed packages (all those with checksums available) - you may need to install debsums, and you probably want to run it with -c or -s.) Also, "dpkg -C" and "apt-get check" will verify the general integrity of the installed package set.


[#27398] Sunday, July 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
bearous

Total Points: 226
Total Questions: 116
Total Answers: 136

Location: Guernsey
Member since Sun, Jan 10, 2021
3 Years ago
;