Eu tentei atualizar a versão do ubuntu de 16.04 para 18.04. Eu segui o procedimento mencionado em aqui . Estou recebendo o seguinte erro depois de baixar todos os pacotes.
Failed to lock /var/cache/apt/archives/lock
PermissionError: [Errno 1] Operation not permitted: '/etc/apt/sources.list'
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/bionic", line 8, in <module>
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/DistUpgrade/DistUpgradeMain.py", line 238, in main
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/DistUpgrade/DistUpgradeController.py", line 1949, in run
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/DistUpgrade/DistUpgradeController.py", line 1913, in fullUpgrade
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/DistUpgrade/DistUpgradeController.py", line 1330, in doDistUpgrade
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/DistUpgrade/DistUpgradeController.py", line 1452, in abort
File "/tmp/ubuntu-release-upgrader-o1qm2vbn/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'
Alguém pode me ajudar nisso? Obrigado.