I have Parrot OS headless running on a Raspberry Pi. I started the upgrade but it now has stopped at:

Installing new version of config file /etc/apt/apt.conf.d/01autoremove

The output before was:

Setting up apt (1.8.1+parrot1)

I have only installed wpa_supplicant and I can get into the system with SSH.

So what can I do now? Kill the apt process? Delete this autoremove config file. Any idea?

It’s been this way for about 2 hours since starting the upgrade and Control+C isn’t working either.

EDIT: Later, after I had rebooted apt said I should use a dpkg command because I killed the last apt and dpkg process.

Now I have retried sudo apt-get upgrade but it said that one package is damaged or something. I ran sudo apt --fix-broken install and now its stuck at

Setting up apt (1.8.1+parrot1)

What can be done?


This trouble happens for several reasons, as any Linux distribution the most probably is that the repository is not updated, so what is recomended is:

sudo rm /var/lib/apt/lists/*

sudo rm /var/lib/apt/lists/partial/* 

sudo apt-get update

If this is not working is better to change the download repositories

Editing source.list

sudo tee -a /etc/apt/source.list 


Usually this works for all Linux distributions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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