14.04.4 LTS para 16.04.3 LTS upgrade - ImportError: Nenhum módulo chamado 'lsb_release'

2

Por favor, eu preciso de alguma ajuda, eu mal sei e muito novo usuário do Ubuntu. Estou tentando atualizar de 14.04.4 LTS para 16.04.3 LTS usando

do-release-upgrade

mas falha e recebi essa mensagem de erro

    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) ===

O que devo fazer para corrigir o upgrade completo com êxito?

Obrigado em avançado.

    
por Vt Creative 09.11.2017 / 05:53

1 resposta

3

Eu pesquisei pelo módulo lsb_release com dpkg -S lsb_release | grep python no meu Ubuntu 16.04.3 LTS e recebi o pacote ( lsb-release ). Na Trusty, ele está localizado em o mesmo pacote .

Então, para mim, parece que você deve instalar este pacote antes da atualização com o% sudo apt-get install lsb-release .

    
por N0rbert 13.11.2017 / 19:28