[Bug 1220125] Re: error setting ownership of symlink `<..>/hot.json.dpkg-new': Operation not permitte
Loïc Minier
lool at dooz.org
Tue Sep 3 09:09:14 UTC 2013
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
1893 lstat64("/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2/debug/hot.json", 0xbeca0c90) = -1 ENOENT (No such file or directory)
1893 rename("/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)
1893 rmdir("/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2/debug/hot.json.dpkg-new") = -1 ENOENT (No such file or directory)
1893 rmdir("/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2/debug/hot.json.dpkg-tmp") = -1 ENOENT (No such file or directory)
1893 symlink("frontpage.json", "/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2/debug/hot.json.dpkg-new") = 0
1893 lchown32("/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 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
lrwxrwxrwx root/root 0 2013-03-23 15:57 ./debug/hot.json -> frontpage.json
lrwxrwxrwx root/root 0 2013-03-23 16:06 ./debug/r/ubuntu/hot.json -> ../ubuntu.json
phablet at ubuntu-phablet:~$ dpkg-deb -c com.ubuntu.developer.mhall119.ureadit-0.9.2.click\?noauth\=1 |grep frontpage
-rw-rw-r-- root/root 40728 2013-03-23 15:47 ./debug/frontpage.json
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
lrwxrwxrwx root/root 0 2013-03-23 15:57 ./debug/hot.json -> frontpage.json
lrwxrwxrwx root/root 0 2013-03-23 16:06 ./debug/r/ubuntu/hot.json -> ../ubuntu.json
Cheers,
** Attachment added: "packagekit strace"
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1220125/+attachment/3800593/+files/pk.strace
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to click in Ubuntu.
https://bugs.launchpad.net/bugs/1220125
Title:
error setting ownership of symlink `<..>/hot.json.dpkg-new': Operation
not permitte
Status in “click” package in Ubuntu:
Fix Committed
Bug description:
Trying to install ureadit from the software store, I get:
(Reading database ... 0 files and directories currently installed.)
Unpacking com.ubuntu.developer.mhall119.ureadit (from .../com.ubuntu.developer.mhall119.ureadit-0.9.2.click) ...
dpkg: error processing /home/phablet/.local/share/download_manager/{59168886-2ef7-41ed-bae7-1f4c1f98a505}/com.ubuntu.developer.mhall119.ureadit-0.9.2.click (--install):
error setting ownership of symlink `/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2/debug/hot.json.dpkg-new': Operation not permitted
Errors were encountered while processing:
/home/phablet/.local/share/download_manager/{59168886-2ef7-41ed-bae7-1f4c1f98a505}/com.ubuntu.developer.mhall119.ureadit-0.9.2.click
Traceback (most recent call last):
File "/usr/bin/click", line 84, in <module>
sys.exit(main())
File "/usr/bin/click", line 79, in main
mod.run(args)
File "/usr/lib/python3/dist-packages/click/commands/install.py", line 41, in run
installer.install(package_path, user=options.user)
File "/usr/lib/python3/dist-packages/click/install.py", line 264, in install
env=env, **kwargs)
File "/usr/lib/python3.3/subprocess.py", line 544, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['dpkg', '--force-not-root', '--force-bad-path', '--instdir', '/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2', '--admindir', '/opt/click.ubuntu.com/com.ubuntu.developer.mhall119.ureadit/0.9.2/.click', '--path-exclude', '*/.click/*', '--log', '/opt/click.ubuntu.com/.click/log', '--no-triggers', '--install', '/home/phablet/.local/share/download_manager/{59168886-2ef7-41ed-bae7-1f4c1f98a505}/com.ubuntu.developer.mhall119.ureadit-0.9.2.click']' returned non-zero exit status 1
root at ubuntu-phablet:/#
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/click/+bug/1220125/+subscriptions
More information about the foundations-bugs
mailing list