Ubuntu upgrade failing from 16.04 to 16.10 : ' Failed to lock /var/cache/apt/archives/lock " - Ask Ubuntu


i unable upgrade ubuntu 16.04 16.10. error message:

failed lock /var/cache/apt/archives/lock 

there numerous links on how fix it. i tried all. no success. can help?

existing links on same topic:

error message:

calculating changes  calculating changes  want start upgrade?    10 installed packages no longer supported canonical. can  still support community.   16 packages going removed. 293 new packages going  installed. 1842 packages going upgraded.   installing upgrade can take several hours. once download has  finished, process cannot canceled.    continue [yn]  details [d]y  fetching fetched 0 b in 0s (0 b/s)                                       upgrading  not download upgrades   upgrade has aborted. please check internet connection or  installation media , try again.   failed lock /var/cache/apt/archives/lock    traceback (most recent call last):   file "/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety", line 8, in <module>   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgrademain.py", line 242, in main   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1880, in run   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1845, in fullupgrade   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1263, in dodistupgrade   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1385, in abort   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/sourceslist.py", line 366, in restore_backup   file "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   file "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.s_imode(st.st_mode)) permissionerror: [errno 1] operation not permitted: '/etc/apt/sources.list' error in sys.excepthook: traceback (most recent call last):   file "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook     pr.add_proc_info(extraenv=['pythonpath', 'pythonhome'])   file "/usr/lib/python3/dist-packages/apport/report.py", line 544, in add_proc_info     self['executabletimestamp'] = str(int(os.stat(self['executablepath']).st_mtime)) permissionerror: [errno 13] permission denied: '/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety'  original exception was: traceback (most recent call last):   file "/tmp/ubuntu-release-upgrader-kfjtjdko/yakkety", line 8, in <module>   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgrademain.py", line 242, in main   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1880, in run   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1845, in fullupgrade   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1263, in dodistupgrade   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/distupgradecontroller.py", line 1385, in abort   file "/tmp/ubuntu-release-upgrader-kfjtjdko/distupgrade/sourceslist.py", line 366, in restore_backup   file "/usr/lib/python3.5/shutil.py", line 236, in copy     copymode(src, dst, follow_symlinks=follow_symlinks)   file "/usr/lib/python3.5/shutil.py", line 138, in copymode     chmod_func(dst, stat.s_imode(st.st_mode)) permissionerror: [errno 1] operation not permitted: '/etc/apt/sources.list' 

which of these 2 did do:

sudo apt-get dist-upgrade apt-get dist-upgrade? 

i'd dare user doesn't have correct permissions. receive similar shorter output if run without sudo.

open terminal , type

groups 

what output get?


links

the links posted might have answer without being direct answer.

the third link contained link directions on how remove lock on file answer removing lock

one of other links specified having open program touches file causes locked begin with. have made sure there isn't update process launching default when turn on pc? i'd make sure don't have update process starting , reboot , try again. rebooting kill program , if doesn't auto-start, lock should gone , therefore problem should not persist.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User