Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to upgrade some package in a VM, but I dpkg refuses to apply the upgrades due the following:

dpkg: error processing /var/cache/apt/archives/ifupdown_0.7.5ubuntu2.2_amd64.deb (--unpack):
 unable to make backup link of `./sbin/ifquery' before installing new version: No such file or directory
Preparing to replace unzip 6.0-8ubuntu1 (using .../unzip_6.0-8ubuntu2_amd64.deb) ...
Unpacking replacement unzip ...
dpkg: error processing /var/cache/apt/archives/unzip_6.0-8ubuntu2_amd64.deb (--unpack):
 unable to make backup link of `./usr/bin/unzip' before installing new version: No such file or directory
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

What it means? The permissions are fine and the file definitively exist:

ls -l /sbin/ifquery
-rwxr-xr-x 1 1500000 1500000 58496 dic 12  2012 /sbin/ifquery
share|improve this question
Why the . in the path? ./usr/bin/unzip ; It would seem that you can't make a backup link of $(pwd)/usr/bin/unzip - is $(pwd) /. ? I'm unfamiliar with dpkg but it seems strange that it would cd / before working. – mikeserv Mar 23 '14 at 7:19
It cd / ? Thats bloody crazy! – mikeserv Mar 23 '14 at 14:02
Ummm... I do everytime i upgrade chrome - its a deb that i use a pkgbuild to handle. Why? I adapted the pkgbuild but not to the point i had to get into that part... What'd i miss? – mikeserv Mar 23 '14 at 14:15
up vote 1 down vote accepted

This means that for some motive, you can't move the binary in the file system:

sudo mv /sbin/ifquery{,.bk}
[sudo] password for braiam:          
mv: cannot move ‘/sbin/ifquery’ to ‘/sbin/ifquery.bk’: Input/output error

You should check the filesystem for problems or ask your system administrator.

share|improve this answer
What if you are the system administrator? – cutrightjm Mar 23 '14 at 5:21
@ekaj then you have a little problem ;). I only asked what the message mean and why it happens, it didn't interested me how to solve the possible (too many) causes. Understand what the problem is is the first step to fix it, this answer explain why the error appears not how to fix it. – Braiam Mar 23 '14 at 5:24
@Braiam according to the data OP provides it doesnt appear anyone is trying to move /sbin/ifquery but rather ./sbin/ifquery – mikeserv Mar 23 '14 at 12:38
Youre ekaj then? Are you dyslexic? Cause it looks like you spelled jake backwards... – mikeserv Mar 23 '14 at 14:03
Oh, nevermind. Ekaj questioned you on your answer to your own question - for some reason i thought you were answering his. Maybe im dyslexic... – mikeserv Mar 23 '14 at 14:13

ls -lsa /sbin/ifquery is not enough, check the file attribute with and you will very likely see something like:

$ lsattr /sbin/ifquery
----ia-------e- /sbin/ifquery

Only e is needed and wanted; remove the others. In my case: sudo chattr -ia /sbin/ifquery

$ sudo chattr -ia /sbin/ifquery 
$ sudo lsattr /sbin/ifquery
-------------e- /sbin/ifquery

In my case i and a respectively means that the file can't be modified and can only be appended. Now, try upgrading again.

share|improve this answer

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.