S'il vous plaît j'ai besoin d'aide, je connais à peine et très nouvel utilisateur Ubuntu. J'essaie de passer de 14.04.4 LTS à 16.04.3 LTS en utilisant
do-release-upgrade
mais il échoue et j'ai eu ce message d'erreur
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-i_2c0bda/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/DistUpgradeMain.py", line 239, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/DistUpgradeMain.py", line 131, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/apt_clone.py", line 149, in save_state
self._write_state_installed_pkgs(sourcedir, tar)
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/apt_clone.py", line 203, in _write_state_installed_pkgs
import lsb_release
ImportError: No module named 'lsb_release'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 416, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 369, in write
block = f.read(1048576)
File "/usr/lib/python3.4/codecs.py", line 319, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-i_2c0bda/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/DistUpgradeMain.py", line 239, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/DistUpgradeMain.py", line 131, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/apt_clone.py", line 149, in save_state
self._write_state_installed_pkgs(sourcedir, tar)
File "/tmp/ubuntu-release-upgrader-i_2c0bda/DistUpgrade/apt_clone.py", line 203, in _write_state_installed_pkgs
import lsb_release
ImportError: No module named 'lsb_release'
=== Command detached from window (Thu Nov 9 11:20:21 2017) ===
Que dois-je faire pour résoudre le problème de la mise à niveau complète?
Merci d'avance.
J'ai cherché le module lsb_release avec dpkg -S lsb_release | grep python
sur mon Ubuntu 16.04.3 LTS et ai obtenu son paquet (lsb-release
). Dans Trusty, il se trouve dans le même package .
Donc, pour moi, il semble que vous devriez installer ce paquet avant de mettre à jour avecSudo apt-get install lsb-release
.