Ubuntu 15.10에서 16.04로 업그레이드하려고 했지만 성공하지 못했습니다. 완료하지 못했습니다. 업그레이드가 실패하면 터미널에서 업데이트 관리자를 실행하면 다음이 제공됩니다. 검색해 보니 Python 문제와 관련이 있는 것으로 보입니다. Linux/ubuntu에 대한 지식이 제한되어 있으므로 성공적으로 업그레이드할 수 있도록 문제를 해결하는 방법에 대한 도움/안내를 요청합니다. 즉, 문제를 정확히 찾아내기 위한 단서를 찾기 위해 로그 등을 확인할 수 있거나 명령을 실행할 수 있습니다.
업그레이드 실패 시 표시되는 메시지:
Checking for a new Ubuntu release
Your Ubuntu release is not supported anymore.
For upgrade information, please visit:
http://www.ubuntu.com/releaseendoflife
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
authenticate 'xenial.tar.gz' against 'xenial.tar.gz.gpg'
extracting 'xenial.tar.gz'
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-46o837s0/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-46o837s0/DistUpgrade/DistUpgradeMain.py", line 239, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-46o837s0/DistUpgrade/DistUpgradeMain.py", line 131, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-46o837s0/DistUpgrade/apt_clone.py", line 149, in save_state
self._write_state_installed_pkgs(sourcedir, tar)
File "/tmp/ubuntu-release-upgrader-46o837s0/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 480, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 433, 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-46o837s0/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-46o837s0/DistUpgrade/DistUpgradeMain.py", line 239, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-46o837s0/DistUpgrade/DistUpgradeMain.py", line 131, in save_system_state
scrub_sources=True)
로그 파일
2017-05-26 19:37:22,056 ERROR not handled exception:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-4vs1duge/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-4vs1duge/DistUpgrade/DistUpgradeMain.py", line 239, in main
save_system_state(logdir)
File "/tmp/ubuntu-release-upgrader-4vs1duge/DistUpgrade/DistUpgradeMain.py", line 131, in save_system_state
scrub_sources=True)
File "/tmp/ubuntu-release-upgrader-4vs1duge/DistUpgrade/apt_clone.py", line 149, in save_state
self._write_state_installed_pkgs(sourcedir, tar)
File "/tmp/ubuntu-release-upgrader-4vs1duge/DistUpgrade/apt_clone.py", line 203, in _write_state_installed_pkgs
import lsb_release
ImportError: No module named 'lsb_release'
2017-05-26 19:37:22,057 DEBUG running apport_crash()
2017-05-26 19:37:22,263 DEBUG enabling apt cron job
달리기lsb_release -a
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:desktop-4.1-amd64:desktop-4.1-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:graphics-4.1-amd64:graphics-4.1-noarch:languages-3.2-amd64:languages-3.2-noarch:languages-4.0-amd64:languages-4.0-noarch:languages-4.1-amd64:languages-4.1-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:multimedia-4.0-amd64:multimedia-4.0-noarch:multimedia-4.1-amd64:multimedia-4.1-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:printing-4.1-amd64:printing-4.1-noarch:qt4-3.1-amd64:qt4-3.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
답변1
발견된 문제는 설치된 버전 때문이었습니다 lsb_release
.
터미널에서 실행
python /usr/bin/lsb_release
또는
python2.7 /usr/bin/lsb_release
둘 다 괜찮아
하는 동안
python3 /usr/bin/lsb_release
또는
python3.4 /usr/bin/lsb_release
준
ImportError: No module named 'lsb_release'
문제를 해결하기 위해 Synaptic Package Manager를 사용하여 버전 lsb_release
으로 다시 다운그레이드했습니다 .4.1+Debian11ubuntu8