Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Last night my system(Ubuntu 12.04) was crashed, and I had to install the Ubuntu 12.04 again.
Actually I have "/var/cache/apt/archives", that it's for my previous OS ,but when I wrote this command as a root user :

sudo dpkg -i /var/cache/apt/archives/*deb

after several times show me this error :

system halted because there were too many errors...

and my Ubuntu didn't boot again, so I installed it again, now how to use /var/cache/apt/archives and is there any way to handle this problem please ?

share|improve this question
You want to install all the packages of your previous installation, right? –  tuxtu Dec 6 '12 at 14:55
@uzumaki: exactly, it's about 800Mb and my Internet speed is very low :( –  Sam Dec 6 '12 at 14:56
When you are putting this command in your new installation, it's pointing to the archives of new installation. Just show the folder from terminal and give the command to install all the packages it has in it. I think that'll solve your problem. –  tuxtu Dec 6 '12 at 15:04
Possible duplicate of using .deb packages in /var/cache/apt/archives , have a look. –  NikTh Dec 6 '12 at 15:17

2 Answers 2


This might help point you in the right direction. It looks like you'll have to re-install apt and then force the system to re-install the apps that it thinks it can.

share|improve this answer
thnx for your help .... –  Sam Dec 6 '12 at 20:19

Here error occured due to lack of dependancies, dpkg -i *.deb is dangerous If necessory dependancies are not satisfied, So I would like to suggest local repository or an aptoncd image to use such debs

share|improve this answer
thnx, how to define "/var/cache/apt/archives" as local repository please ?and I don't know what is "aptoncd image"? which is better? –  Sam Dec 6 '12 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.