[SOLVED] dpkg: error processing package refind

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
hughparker1
Level 2
Level 2
Posts: 87
Joined: Wed Oct 01, 2014 4:18 pm

[SOLVED] dpkg: error processing package refind

Post by hughparker1 »

I am using laptop Dell Vostro with Linux Mint 17.1 xfce. Laptop is 5 years old and is not using efi or uefi boot process.

Every time I run apt-get upgrade, I am getting the same error at the end of the process, here is details of the message I get ....

Code: Select all

hugh@DELL-MINT-XFCE ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up refind (0.8.7-0ppa2) ...
Fatal: Couldn't open either sysfs or procfs directories for accessing EFI variables.
Try 'modprobe efivars' as root.
ShimSource is none
Installing rEFInd on Linux....
The ESP doesn't seem to be mounted! Trying to find it....
// doesn't seem to be on a VFAT filesystem. The ESP must be
mounted at //boot or //boot/efi and it must be VFAT! Aborting!
dpkg: error processing package refind (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 refind
E: Sub-process /usr/bin/dpkg returned an error code (1)
hugh@DELL-MINT-XFCE ~ $ 
... this message also appears when I install any new software using "sudo apt-get install" in terminal. The software installation look successful but this error message always appears at the end.

Not sure what it means, any idea?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
borto

Re: dpkg: error processing package refind

Post by borto »

Paste each line below in terminal, then copy the result and post it here.

Code: Select all

ls -l /sys/firmware/efi
dmesg | grep -i EFI
hughparker1
Level 2
Level 2
Posts: 87
Joined: Wed Oct 01, 2014 4:18 pm

Re: dpkg: error processing package refind

Post by hughparker1 »

borto wrote:Paste each line below in terminal, then copy the result and post it here.

Code: Select all

ls -l /sys/firmware/efi
dmesg | grep -i EFI
thanks for your quick reply, here is the output....

Code: Select all

hugh@DELL-MINT-XFCE ~ $ ls -l /sys/firmware/efi
ls: cannot access /sys/firmware/efi: No such file or directory
hugh@DELL-MINT-XFCE ~ $ dmesg | grep -i EFI
hugh@DELL-MINT-XFCE ~ $
not much output I'm afraid. what do think?
borto

Re: dpkg: error processing package refind

Post by borto »

Sorry for the late reply, I was exhausted yesterday.

If I'm correct, command output indicates your computer is not configured for EFI like you said in OP.

Next step is to run the following lines in terminal (this will remove the troublesome package) and paste the output:

Code: Select all

sudo dpkg --purge refind
sudo dpkg --configure -a
sudo dpkg --audit
sudo apt-get update
sudo apt-get upgrade
Source (another guy had the same problem if I read correctly): https://answers.launchpad.net/ubuntu/+question/251180

Before you do run the above lines I would love it if someone would confirm that my thinking is correct.
hughparker1
Level 2
Level 2
Posts: 87
Joined: Wed Oct 01, 2014 4:18 pm

Re: dpkg: error processing package refind

Post by hughparker1 »

borto wrote:If I'm correct, command output indicates your computer is not configured for EFI like you said in OP.

Next step is to run the following lines in terminal (this will remove the troublesome package) and paste the output:

Code: Select all

sudo dpkg --purge refind
sudo dpkg --configure -a
sudo dpkg --audit
sudo apt-get update
sudo apt-get upgrade
Source (another guy had the same problem if I read correctly): https://answers.launchpad.net/ubuntu/+question/251180

Before you do run the above lines I would love it if someone would confirm that my thinking is correct.
Thanks for taking the time to investigate my problem, it is much appreciated. I'm not an expert on linux. I would like to give it a try, but wondered if anyone else could confirm if this looks like a reasonable way forward.
hughparker1
Level 2
Level 2
Posts: 87
Joined: Wed Oct 01, 2014 4:18 pm

Re: dpkg: error processing package refind

Post by hughparker1 »

borto wrote:Next step is to run the following lines in terminal (this will remove the troublesome package) and paste the output:

Code: Select all

sudo dpkg --purge refind
sudo dpkg --configure -a
sudo dpkg --audit
sudo apt-get update
sudo apt-get upgrade
I decided to follow your advice and entered the commands...

Code: Select all

hugh@DELL-MINT-XFCE ~ $ sudo dpkg --purge refind
[sudo] password for hugh: 
(Reading database ... 160122 files and directories currently installed.)
Removing refind (0.8.7-0ppa2) ...
Purging configuration files for refind (0.8.7-0ppa2) ...
hugh@DELL-MINT-XFCE ~ $ sudo dpkg --configure -a
hugh@DELL-MINT-XFCE ~ $ sudo dpkg --audit
hugh@DELL-MINT-XFCE ~ $ sudo apt-get update 
... update output was all ok ... then sudo apt-get upgrade

Code: Select all

hugh@DELL-MINT-XFCE ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  efibootmgr sbsigntool
Use 'apt-get autoremove' to remove them.
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
hugh@DELL-MINT-XFCE ~ $

... I removed the two packages indicated to be no longer required ...

Code: Select all

hugh@DELL-MINT-XFCE ~ $ sudo apt-get autoremove efibootmgr sbsigntool
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED
  efibootmgr sbsigntool
0 to upgrade, 0 to newly install, 2 to remove and 0 not to upgrade.
After this operation, 453 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 159954 files and directories currently installed.)
Removing efibootmgr (0.5.4-7ubuntu1.1) ...
Removing sbsigntool (0.6-0ubuntu7) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
hugh@DELL-MINT-XFCE ~ $

now when I run apt-get upgrade, there are no errors reported....

Code: Select all

hugh@DELL-MINT-XFCE ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
hugh@DELL-MINT-XFCE ~ $
Your solution looks like it has resolved the errors, so thank you very much for taking the time to help me, it is much appreciated.
zerozero

Re: [SOLVED] dpkg: error processing package refind

Post by zerozero »

the question that remains is, knowing that you have
hughparker1 wrote:I am using laptop Dell Vostro with Linux Mint 17.1 xfce. Laptop is 5 years old and is not using efi or uefi boot process.
why did you add the refind ppa >> https://launchpad.net/~rodsmith/+archive/ubuntu/refind to your system?
User avatar
bbaker6212
Level 5
Level 5
Posts: 538
Joined: Wed Aug 12, 2015 6:35 pm

Re: [SOLVED] dpkg: error processing package refind

Post by bbaker6212 »

I'm getting this error too. Will see if the above fixes if for me too..

apt-get update
apt-get upgrade

Code: Select all

brad@G50-45 ~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up i-nex (7.4.0+bzr887+20150112~ubuntu14.04.1) ...
dpkg: error processing package i-nex (--configure):
 subprocess installed post-installation script returned error exit status 6
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 i-nex
E: Sub-process /usr/bin/dpkg returned an error code (1)
Linux Mint XFCE 21.1 , Windows 11, Pop!_OS 22.04 Acer Aspire 5 A515-57 (linux-probe), Core i5-1235U, 16GB RAM
Lenovo Ideapad 330S-15IKB (linux-probe), Core i5-8250U, 20GB RAM
User avatar
bbaker6212
Level 5
Level 5
Posts: 538
Joined: Wed Aug 12, 2015 6:35 pm

Re: [SOLVED] dpkg: error processing package refind

Post by bbaker6212 »

I removed the offending package with 'sudo dpkg --purge i-nex'
no more error messages.

this told me that it's not needed...

Code: Select all

sudo dpkg --audit
The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 i-nex                CPU-Z Alternative for Linux. For Viewing System Device In

Code: Select all

sudo dpkg --purge i-nex
(Reading database ... 237284 files and directories currently installed.)
Removing i-nex (7.4.0+bzr887+20150112~ubuntu14.04.1) ...
Purging configuration files for i-nex (7.4.0+bzr887+20150112~ubuntu14.04.1) ...
Processing triggers for menu (2.1.46ubuntu1) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Linux Mint XFCE 21.1 , Windows 11, Pop!_OS 22.04 Acer Aspire 5 A515-57 (linux-probe), Core i5-1235U, 16GB RAM
Lenovo Ideapad 330S-15IKB (linux-probe), Core i5-8250U, 20GB RAM
vrahul

Re: [SOLVED] dpkg: error processing package refind

Post by vrahul »

While running this command "sudo dpkg --purge refind"
I am getting following

sudo: unable to resolve host Umrao-PC
dpkg: warning: ignoring request to remove refind which isn't installed

Please help me
Locked

Return to “Software & Applications”