error setting ownership of symlink `<..>/hot.json.dpkg-new': Operation not permitte
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
click (Ubuntu) |
Fix Released
|
High
|
Colin Watson |
Bug Description
Trying to install ureadit from the software store, I get:
(Reading database ... 0 files and directories currently installed.)
Unpacking com.ubuntu.
dpkg: error processing /home/phablet/
error setting ownership of symlink `/opt/click.
Errors were encountered while processing:
/home/
Traceback (most recent call last):
File "/usr/bin/click", line 84, in <module>
sys.
File "/usr/bin/click", line 79, in main
mod.run(args)
File "/usr/lib/
installer.
File "/usr/lib/
env=env, **kwargs)
File "/usr/lib/
raise CalledProcessEr
subprocess.
root@ubuntu-
Related branches
- Colin Watson: Approve
- Ubuntu CI managed package branches: Pending requested
-
Diff: 485 lines (+269/-70)11 files modifiedREADME (+1/-0)
click/build.py (+10/-22)
click/framework.py (+138/-0)
click/install.py (+8/-28)
click/paths.py.in (+1/-0)
click/tests/helpers.py (+29/-0)
click/tests/test_build.py (+39/-5)
click/tests/test_install.py (+2/-4)
debian/changelog (+8/-0)
doc/file-format.rst (+1/-2)
doc/index.rst (+32/-9)
I can reproduce this and straced the whole of packagekitd doing the install; the failing syscall seems to be lchown32 on a newly created symlink:
1893 read(8, "\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0\0\0\0\ 0"..., 512) = 512 "/opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json" , 0xbeca0c90) = -1 ENOENT (No such file or directory) "/opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json. dpkg-tmp" , "/opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json" ) = -1 ENOENT (No such file or directory) /opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json. dpkg-new" ) = -1 ENOENT (No such file or directory) /opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json. dpkg-tmp" ) = -1 ENOENT (No such file or directory) "frontpage. json", "/opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json. dpkg-new" ) = 0 "/opt/click. ubuntu. com/com. ubuntu. developer. mhall119. ureadit/ 0.9.2/debug/ hot.json. dpkg-new" , 0, 0) = -1 EPERM (Operation not permitted)
1893 lstat64(
1893 rename(
1893 rmdir("
1893 rmdir("
1893 symlink(
1893 lchown32(
1893 write(2, "dpkg: error processing /home/pha"..., 322) = 322
dpkg-deb -c com.ubuntu. developer. mhall119. ureadit- 0.9.2.click\ ?noauth\ =1 |grep hot r/ubuntu/ hot.json -> ../ubuntu.json
lrwxrwxrwx root/root 0 2013-03-23 15:57 ./debug/hot.json -> frontpage.json
lrwxrwxrwx root/root 0 2013-03-23 16:06 ./debug/
phablet@ ubuntu- phablet: ~$ dpkg-deb -c com.ubuntu. developer. mhall119. ureadit- 0.9.2.click\ ?noauth\ =1 |grep frontpage frontpage. json
-rw-rw-r-- root/root 40728 2013-03-23 15:47 ./debug/
lrwxrwxrwx root/root 0 2013-03-23 15:57 ./debug/hot.json -> frontpage.json
dpkg-deb -c com.ubuntu. developer. mhall119. ureadit- 0.9.2.click\ ?noauth\ =1 |grep ^l r/ubuntu/ hot.json -> ../ubuntu.json
lrwxrwxrwx root/root 0 2013-03-23 15:57 ./debug/hot.json -> frontpage.json
lrwxrwxrwx root/root 0 2013-03-23 16:06 ./debug/
Cheers,