apt Operation not permitted

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I got an error message concerning a package and I did run the recommended command with administrative privileges:



$ sudo apt-get -f install
Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u7) over (2.31.1-2+deb8u6) ...
dpkg: error processing archive /var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb (--unpack):
unable to create `/usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo.dpkg-new' (while processing `./usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo'): Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb


Why is the permission denied for root user? How can I fix this? Thanks in advance.



$ apt-cache policy libgdk-pixbuf2.0-common
libgdk-pixbuf2.0-common:
Installed: 2.31.1-2+deb8u6
Candidate: 2.31.1-2+deb8u7
Version table:
2.31.1-2+deb8u7 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
*** 2.31.1-2+deb8u6 0
100 /var/lib/dpkg/status


Trying this on a Raspberry Pi 2



$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libgdk-pixbuf2.0-0 : Depends: libgdk-pixbuf2.0-common (= 2.31.1-2+deb8u7) but 2.31.1-2+deb8u6 is installed
E: Unmet dependencies. Try using -f.


showing the attributes of the file with lsattr says that e is set, does this cause problems?



can't move the file manually either:



$ sudo mv gdk-pixbuf.mo gdk-pixbuf.mo.old
mv: cannot move ‘gdk-pixbuf.mo’ to ‘gdk-pixbuf.mo.old’: Operation not permitted`

$ ls -lh
-rw-r--r-- 1 root root 17K Sep 15 17:07 gdk-pixbuf.mo

$ getfacl gdk-pixbuf.mo
# file: gdk-pixbuf.mo
# owner: root
# group: root
user::rw-
group::r--
other::r--

$ getfacl LC_MESSAGES
# file: LC_MESSAGES/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x






share|improve this question






















  • Is your user in the sudoers group? Try running sudo -l -U name where name is your username. You should see printed the level of sudo access available.
    – aliceinpalth
    Jan 31 at 16:58










  • yes is sudo user
    – cresse
    Jan 31 at 19:12










  • added the output, seems normal for me
    – cresse
    Feb 1 at 1:06














up vote
0
down vote

favorite












I got an error message concerning a package and I did run the recommended command with administrative privileges:



$ sudo apt-get -f install
Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u7) over (2.31.1-2+deb8u6) ...
dpkg: error processing archive /var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb (--unpack):
unable to create `/usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo.dpkg-new' (while processing `./usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo'): Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb


Why is the permission denied for root user? How can I fix this? Thanks in advance.



$ apt-cache policy libgdk-pixbuf2.0-common
libgdk-pixbuf2.0-common:
Installed: 2.31.1-2+deb8u6
Candidate: 2.31.1-2+deb8u7
Version table:
2.31.1-2+deb8u7 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
*** 2.31.1-2+deb8u6 0
100 /var/lib/dpkg/status


Trying this on a Raspberry Pi 2



$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libgdk-pixbuf2.0-0 : Depends: libgdk-pixbuf2.0-common (= 2.31.1-2+deb8u7) but 2.31.1-2+deb8u6 is installed
E: Unmet dependencies. Try using -f.


showing the attributes of the file with lsattr says that e is set, does this cause problems?



can't move the file manually either:



$ sudo mv gdk-pixbuf.mo gdk-pixbuf.mo.old
mv: cannot move ‘gdk-pixbuf.mo’ to ‘gdk-pixbuf.mo.old’: Operation not permitted`

$ ls -lh
-rw-r--r-- 1 root root 17K Sep 15 17:07 gdk-pixbuf.mo

$ getfacl gdk-pixbuf.mo
# file: gdk-pixbuf.mo
# owner: root
# group: root
user::rw-
group::r--
other::r--

$ getfacl LC_MESSAGES
# file: LC_MESSAGES/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x






share|improve this question






















  • Is your user in the sudoers group? Try running sudo -l -U name where name is your username. You should see printed the level of sudo access available.
    – aliceinpalth
    Jan 31 at 16:58










  • yes is sudo user
    – cresse
    Jan 31 at 19:12










  • added the output, seems normal for me
    – cresse
    Feb 1 at 1:06












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I got an error message concerning a package and I did run the recommended command with administrative privileges:



$ sudo apt-get -f install
Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u7) over (2.31.1-2+deb8u6) ...
dpkg: error processing archive /var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb (--unpack):
unable to create `/usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo.dpkg-new' (while processing `./usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo'): Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb


Why is the permission denied for root user? How can I fix this? Thanks in advance.



$ apt-cache policy libgdk-pixbuf2.0-common
libgdk-pixbuf2.0-common:
Installed: 2.31.1-2+deb8u6
Candidate: 2.31.1-2+deb8u7
Version table:
2.31.1-2+deb8u7 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
*** 2.31.1-2+deb8u6 0
100 /var/lib/dpkg/status


Trying this on a Raspberry Pi 2



$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libgdk-pixbuf2.0-0 : Depends: libgdk-pixbuf2.0-common (= 2.31.1-2+deb8u7) but 2.31.1-2+deb8u6 is installed
E: Unmet dependencies. Try using -f.


showing the attributes of the file with lsattr says that e is set, does this cause problems?



can't move the file manually either:



$ sudo mv gdk-pixbuf.mo gdk-pixbuf.mo.old
mv: cannot move ‘gdk-pixbuf.mo’ to ‘gdk-pixbuf.mo.old’: Operation not permitted`

$ ls -lh
-rw-r--r-- 1 root root 17K Sep 15 17:07 gdk-pixbuf.mo

$ getfacl gdk-pixbuf.mo
# file: gdk-pixbuf.mo
# owner: root
# group: root
user::rw-
group::r--
other::r--

$ getfacl LC_MESSAGES
# file: LC_MESSAGES/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x






share|improve this question














I got an error message concerning a package and I did run the recommended command with administrative privileges:



$ sudo apt-get -f install
Preparing to unpack .../libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb ...
Unpacking libgdk-pixbuf2.0-common (2.31.1-2+deb8u7) over (2.31.1-2+deb8u6) ...
dpkg: error processing archive /var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb (--unpack):
unable to create `/usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo.dpkg-new' (while processing `./usr/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo'): Operation not permitted
Errors were encountered while processing:
/var/cache/apt/archives/libgdk-pixbuf2.0-common_2.31.1-2+deb8u7_all.deb


Why is the permission denied for root user? How can I fix this? Thanks in advance.



$ apt-cache policy libgdk-pixbuf2.0-common
libgdk-pixbuf2.0-common:
Installed: 2.31.1-2+deb8u6
Candidate: 2.31.1-2+deb8u7
Version table:
2.31.1-2+deb8u7 0
500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
*** 2.31.1-2+deb8u6 0
100 /var/lib/dpkg/status


Trying this on a Raspberry Pi 2



$ apt-get autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
libgdk-pixbuf2.0-0 : Depends: libgdk-pixbuf2.0-common (= 2.31.1-2+deb8u7) but 2.31.1-2+deb8u6 is installed
E: Unmet dependencies. Try using -f.


showing the attributes of the file with lsattr says that e is set, does this cause problems?



can't move the file manually either:



$ sudo mv gdk-pixbuf.mo gdk-pixbuf.mo.old
mv: cannot move ‘gdk-pixbuf.mo’ to ‘gdk-pixbuf.mo.old’: Operation not permitted`

$ ls -lh
-rw-r--r-- 1 root root 17K Sep 15 17:07 gdk-pixbuf.mo

$ getfacl gdk-pixbuf.mo
# file: gdk-pixbuf.mo
# owner: root
# group: root
user::rw-
group::r--
other::r--

$ getfacl LC_MESSAGES
# file: LC_MESSAGES/
# owner: root
# group: root
user::rwx
group::r-x
other::r-x








share|improve this question













share|improve this question




share|improve this question








edited Feb 1 at 2:05









muru

33.5k577143




33.5k577143










asked Jan 31 at 16:43









cresse

11




11











  • Is your user in the sudoers group? Try running sudo -l -U name where name is your username. You should see printed the level of sudo access available.
    – aliceinpalth
    Jan 31 at 16:58










  • yes is sudo user
    – cresse
    Jan 31 at 19:12










  • added the output, seems normal for me
    – cresse
    Feb 1 at 1:06
















  • Is your user in the sudoers group? Try running sudo -l -U name where name is your username. You should see printed the level of sudo access available.
    – aliceinpalth
    Jan 31 at 16:58










  • yes is sudo user
    – cresse
    Jan 31 at 19:12










  • added the output, seems normal for me
    – cresse
    Feb 1 at 1:06















Is your user in the sudoers group? Try running sudo -l -U name where name is your username. You should see printed the level of sudo access available.
– aliceinpalth
Jan 31 at 16:58




Is your user in the sudoers group? Try running sudo -l -U name where name is your username. You should see printed the level of sudo access available.
– aliceinpalth
Jan 31 at 16:58












yes is sudo user
– cresse
Jan 31 at 19:12




yes is sudo user
– cresse
Jan 31 at 19:12












added the output, seems normal for me
– cresse
Feb 1 at 1:06




added the output, seems normal for me
– cresse
Feb 1 at 1:06










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Try cleaning up your packages:



sudo apt-get autoremove


Then run this again:



sudo apt-get -f install


Also that directory looks like its part of the language-pack-gnome-xh-base package, so maybe a apt-get install of that as well.






share|improve this answer




















  • autoremove does not work either, posted the result in my post for better formatting
    – cresse
    Jan 31 at 19:13











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421013%2fapt-operation-not-permitted%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Try cleaning up your packages:



sudo apt-get autoremove


Then run this again:



sudo apt-get -f install


Also that directory looks like its part of the language-pack-gnome-xh-base package, so maybe a apt-get install of that as well.






share|improve this answer




















  • autoremove does not work either, posted the result in my post for better formatting
    – cresse
    Jan 31 at 19:13















up vote
0
down vote













Try cleaning up your packages:



sudo apt-get autoremove


Then run this again:



sudo apt-get -f install


Also that directory looks like its part of the language-pack-gnome-xh-base package, so maybe a apt-get install of that as well.






share|improve this answer




















  • autoremove does not work either, posted the result in my post for better formatting
    – cresse
    Jan 31 at 19:13













up vote
0
down vote










up vote
0
down vote









Try cleaning up your packages:



sudo apt-get autoremove


Then run this again:



sudo apt-get -f install


Also that directory looks like its part of the language-pack-gnome-xh-base package, so maybe a apt-get install of that as well.






share|improve this answer












Try cleaning up your packages:



sudo apt-get autoremove


Then run this again:



sudo apt-get -f install


Also that directory looks like its part of the language-pack-gnome-xh-base package, so maybe a apt-get install of that as well.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jan 31 at 17:06









paxamus

443




443











  • autoremove does not work either, posted the result in my post for better formatting
    – cresse
    Jan 31 at 19:13

















  • autoremove does not work either, posted the result in my post for better formatting
    – cresse
    Jan 31 at 19:13
















autoremove does not work either, posted the result in my post for better formatting
– cresse
Jan 31 at 19:13





autoremove does not work either, posted the result in my post for better formatting
– cresse
Jan 31 at 19:13













 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f421013%2fapt-operation-not-permitted%23new-answer', 'question_page');

);

Post as a guest













































































0we 5,CpufcH
oGxdt,x5J S4sd2 QpRx1y mGG ee HJ,wwEhXUolqOgYT6m7FgxxmvG

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS