4

My system said that the upgrade is ready. Did anyone find a solution to this?

I have tried using the update manager. But dist-upgrade does not even attempt to upgrade and finally I also tried

sudo do-release-upgrade 

which also fails with following error:

PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list'

I tried using sudo as well as root (sudo -i).

I really don't want to try changing permissions on this file, but if no one else has a solution, then I will try this.

On another post someone said:
Try sudo apt autoremove, sudo apt update and sudo apt upgrade, but this did not fix the issue either.

Here is a screenshot of the problem:

Here is a screenshot of the problem.

zx485
  • 2,426

2 Answers2

1

I found the answer in a similar post. When I performed the following it worked:

$ sudo apt-get update
$ sudo update-manager -d

I ran this once and it required me to reboot. Nothing happened after the reboot so I entered the command sudo update-manager -d a second time and it worked.

post where i found the answer: Ubuntu upgrade failing from 16.04 to 16.10: 'Failed to lock /var/cache/apt/archives/lock' by toraritte

1

After reading the entire Internet I found a solution:

$ sudo su

# do-release-upgrade

"sudo su" is important.

Vinz486
  • 21