[SOLVED] dpkg: error processing package refind

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
hughparker1
Level 2
Level 2
Posts: 76
Joined: Wed Oct 01, 2014 4:18 pm

[SOLVED] dpkg: error processing package refind

Post by hughparker1 » Mon Jun 22, 2015 10:20 am

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 hughparker1 on Thu Jun 25, 2015 4:35 pm, edited 1 time in total.

User avatar
borto
Level 1
Level 1
Posts: 7
Joined: Mon Jun 22, 2015 7:17 am

Re: dpkg: error processing package refind

Post by borto » Mon Jun 22, 2015 5:26 pm

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: 76
Joined: Wed Oct 01, 2014 4:18 pm

Re: dpkg: error processing package refind

Post by hughparker1 » Mon Jun 22, 2015 5:51 pm

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?

User avatar
borto
Level 1
Level 1
Posts: 7
Joined: Mon Jun 22, 2015 7:17 am

Re: dpkg: error processing package refind

Post by borto » Tue Jun 23, 2015 5:52 am

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: 76
Joined: Wed Oct 01, 2014 4:18 pm

Re: dpkg: error processing package refind

Post by hughparker1 » Tue Jun 23, 2015 5:28 pm

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: 76
Joined: Wed Oct 01, 2014 4:18 pm

Re: dpkg: error processing package refind

Post by hughparker1 » Thu Jun 25, 2015 4:34 pm

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
Level 16
Level 16
Posts: 6506
Joined: Tue Jul 07, 2009 2:29 pm

Re: [SOLVED] dpkg: error processing package refind

Post by zerozero » Thu Jun 25, 2015 7:28 pm

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?
Image

[ bliss of ignorance ]

User avatar
bbaker6212
Level 5
Level 5
Posts: 520
Joined: Wed Aug 12, 2015 6:35 pm

Re: [SOLVED] dpkg: error processing package refind

Post by bbaker6212 » Thu Sep 17, 2015 6:18 pm

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 Mate 18.1 k/4.10, Windows 10, Manjaro 17.0 Xfce k/4.14.54-1
Lenovo Ideapad G50-45 AMD A6-6310, 8GB RAM, 500GB Samsung EVO 850 SSD, Realtek RTL8723BE WiFi

User avatar
bbaker6212
Level 5
Level 5
Posts: 520
Joined: Wed Aug 12, 2015 6:35 pm

Re: [SOLVED] dpkg: error processing package refind

Post by bbaker6212 » Thu Sep 17, 2015 6:30 pm

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 Mate 18.1 k/4.10, Windows 10, Manjaro 17.0 Xfce k/4.14.54-1
Lenovo Ideapad G50-45 AMD A6-6310, 8GB RAM, 500GB Samsung EVO 850 SSD, Realtek RTL8723BE WiFi

vrahul
Level 1
Level 1
Posts: 3
Joined: Tue Jun 13, 2017 6:57 am

Re: [SOLVED] dpkg: error processing package refind

Post by vrahul » Thu Jun 15, 2017 3:13 am

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

Post Reply

Return to “Software & Applications”