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,249
  • 11
  • 24
  • 34
mupylinx
  • 51
  • 5
  • 1
    Possible duplicate of [Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?](https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process) – wjandrea Aug 14 '18 at 20:27
  • 2
    Or maybe this question is a more apt duplicate: [Update: Failed to lock /var/cache/apt/archives/lock](https://askubuntu.com/q/300269/301745) – wjandrea Aug 14 '18 at 20:29
  • No matter what I do from these and other suggestions, I always ended with the same error "Failed to lock /var/cache/apt/archives/lock" – Fausto R. Aug 25 '18 at 20:43

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

mupylinx
  • 51
  • 5
1

After reading the entire Internet I found a solution:

$ sudo su

# do-release-upgrade

"sudo su" is important.

Vinz486
  • 21
  • 3