Today we had a customer who had somehow broken his apt package manager doing an upgrade from the looks. I googled and found the same error in many places, most resorting to reinstalling or purging the package to clear it, or reinstall.
The error looked like this
3 upgraded, 12 newly installed, 1 to remove and 14 not upgraded. 3 not fully installed or removed. Need to get 0B/2,770kB of archives. After this operation, 4,067kB of additional disk space will be used. Do you want to continue [Y/n]? E: Could not perform immediate configuration on already unpacked 'util-linux'.Please see man 5 apt.conf under APT::Immediate-Configure for details.
Because the package in question was util-linux , we were unable to purge or remove that package we had to find an alternative way to get around that.
To make a long story short, i took a backup of the system before touching anything in case i broke it (always a good policy), then ran the following
apt-get -f install -o APT::Immediate-Configure=0
Bingo, this fixed everything. Once that dependency had been installed correctly i upgraded and finihsed the config of other packages as per usual, and apt-get/dpkg was all fixed.
Should this happen to you on your Rimuhosting server, and you are unable to fix it, just drop us an email.
2 responses to “Could not perform immediate configuration on already unpacked ‘util-linux’.Please see man 5 apt.conf under APT::Immediate-Configure for details”
After running the following command : sudo apt-get update; sudo apt-get upgrade, the result below appears : –
842 upgraded, 0 newly installed, 0 to remove and 509 not upgraded.
Need to get 0 B/435 MB of archives.
After this operation, 85.2 MB disk space will be freed.
Do you want to continue [Y/n]?
E: Could not perform immediate configuration on ‘util-linux’. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
I then tried the solution offered above, i.e. (sudo) apt-get -f install -o APT::Immediate-Configure=0, this time the result yeilded is : – 0 upgraded, 0 newly installed, 0 to remove and 1351 not upgraded.
uname -a gives : –
Linux Dell-Latitude-D630 2.6.38-12-generic-pae #51-Ubuntu SMP Wed Sep 28 16:11:32 UTC 2011 i686 i686 i386 GNU/Linux.
Release = 11.04 (Natty)
Thanks in Advance for any help that you may be able to offer.
cheers
Leroy
have you tried
apt-get -f install
If this is a VPS we host, just pop in a ticket and i can take a look at that for you.