Skip to content

Instantly share code, notes, and snippets.

@jacktose
Last active March 9, 2018 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacktose/35ee3d7a26ebe283a7275c092d69723e to your computer and use it in GitHub Desktop.
Save jacktose/35ee3d7a26ebe283a7275c092d69723e to your computer and use it in GitHub Desktop.
do-release-upgrade errors
user@host-1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
user@host-1:~$ sudo apt update
[sudo] password for user:
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:5 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [463 kB]
Get:7 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:8 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:9 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/main Translation-en [199 kB]
Get:11 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [740 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [7,224 B]
Get:13 http://security.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2,152 B]
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [307 kB]
Get:15 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [322 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [7,560 B]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2,272 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [596 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [241 kB]
Get:20 http://security.ubuntu.com/ubuntu xenial-security/universe Translation-en [121 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [16.2 kB]
Get:22 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,208 B]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [8,052 B]
Get:24 http://security.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1,408 B]
Get:25 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4,836 B]
Get:26 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3,220 B]
Get:27 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,080 B]
user@host-1:~$ sudo apt install update-manager-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
python3-update-manager
The following packages will be upgraded:
python3-update-manager update-manager-core
2 upgraded, 0 newly installed, 0 to remove and 118 not upgraded.
Need to get 37.7 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 python3-update-manager all 1:16.04.12 [32.2 kB]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 update-manager-core all 1:16.04.12 [5,528 B]
Fetched 37.7 kB in 0s (52.4 kB/s)
(Reading database ... 25532 files and directories currently installed.)
Preparing to unpack .../python3-update-manager_1%3a16.04.12_all.deb ...
Unpacking python3-update-manager (1:16.04.12) over (1:16.04.9) ...
Preparing to unpack .../update-manager-core_1%3a16.04.12_all.deb ...
Unpacking update-manager-core (1:16.04.12) over (1:16.04.9) ...
Setting up python3-update-manager (1:16.04.12) ...
Setting up update-manager-core (1:16.04.12) ...
user@host-1:~$ sudo env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade -c
Checking for a new Ubuntu release
New release '17.10' available.
Run 'do-release-upgrade' to upgrade to it.
user@host-1:~$ sudo env RELEASE_UPGRADER_NO_SCREEN=1 do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,246 kB]
Fetched 1,247 kB in 0s (0 B/s)
authenticate 'artful.tar.gz' against 'artful.tar.gz.gpg'
extracting 'artful.tar.gz'
Reading cache
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
0% [Connecting to archive.ubuntu.com] [Connecting to security.ubuntu.com] http: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Updating repository information
0% [Connecting to archive.ubuntu.com] [Connecting to security.ubuntu.com (91.189.88.149)] http: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Fetched 0 B in 0s (0 B/s)
Get:1 http://security.ubuntu.com/ubuntu artful-security InRelease [78.6 kB]
Get:2 http://archive.ubuntu.com/ubuntu artful InRelease [237 kB]
Get:3 http://archive.ubuntu.com/ubuntu artful-updates InRelease [78.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu artful-backports InRelease [72.2 kB]
Get:5 http://security.ubuntu.com/ubuntu artful-security/main amd64 Packages [137 kB]
Get:6 http://security.ubuntu.com/ubuntu artful-security/main Translation-en [59.8 kB]
Get:7 http://security.ubuntu.com/ubuntu artful-security/restricted amd64 Packages [2,192 B]
Get:8 http://security.ubuntu.com/ubuntu artful-security/restricted Translation-en [1,284 B]
Get:9 http://security.ubuntu.com/ubuntu artful-security/universe amd64 Packages [46.3 kB]
Get:10 http://security.ubuntu.com/ubuntu artful-security/universe Translation-en [29.5 kB]
Get:11 http://security.ubuntu.com/ubuntu artful-security/multiverse amd64 Packages [1,828 B]
Get:12 http://archive.ubuntu.com/ubuntu artful/main amd64 Packages [1,071 kB]
Get:13 http://security.ubuntu.com/ubuntu artful-security/multiverse Translation-en [1,124 B]
Get:14 http://archive.ubuntu.com/ubuntu artful/main Translation-en [542 kB]
Get:15 http://archive.ubuntu.com/ubuntu artful/restricted amd64 Packages [8,852 B]
Get:16 http://archive.ubuntu.com/ubuntu artful/restricted Translation-en [2,788 B]
Get:17 http://archive.ubuntu.com/ubuntu artful/universe amd64 Packages [8,103 kB]
Get:18 http://archive.ubuntu.com/ubuntu artful/universe Translation-en [4,789 kB]
Get:19 http://archive.ubuntu.com/ubuntu artful/multiverse amd64 Packages [150 kB]
Get:20 http://archive.ubuntu.com/ubuntu artful/multiverse Translation-en [108 kB]
Get:21 http://archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages [223 kB]
Get:22 http://archive.ubuntu.com/ubuntu artful-updates/main Translation-en [99.2 kB]
Get:23 http://archive.ubuntu.com/ubuntu artful-updates/restricted amd64 Packages [2,192 B]
Get:24 http://archive.ubuntu.com/ubuntu artful-updates/restricted Translation-en [1,284 B]
Get:25 http://archive.ubuntu.com/ubuntu artful-updates/universe amd64 Packages [90.9 kB]
Get:26 http://archive.ubuntu.com/ubuntu artful-updates/universe Translation-en [52.1 kB]
Get:27 http://archive.ubuntu.com/ubuntu artful-updates/multiverse amd64 Packages [1,828 B]
Get:28 http://archive.ubuntu.com/ubuntu artful-updates/multiverse Translation-en [1,124 B]
Get:29 http://archive.ubuntu.com/ubuntu artful-backports/main amd64 Packages [1,516 B]
Get:30 http://archive.ubuntu.com/ubuntu artful-backports/main Translation-en [668 B]
Get:31 http://archive.ubuntu.com/ubuntu artful-backports/universe amd64 Packages [3,856 B]
Get:32 http://archive.ubuntu.com/ubuntu artful-backports/universe Translation-en [1,912 B]
Fetched 16.0 MB in 6s (390 kB/s)
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
MarkInstall libpam-cap [ amd64 ] < none -> 1:2.25-1.1 > ( libs ) FU=1
Do you want to start the upgrade?
2 installed packages are no longer supported by Canonical. You can
still get support from the community.
2 packages are going to be removed. 72 new packages are going to be
installed. 385 packages are going to be upgraded.
You have to download a total of 131 M. This download will take about
5 minutes with your connection.
Installing the upgrade can take several hours. Once the download has
finished, the process cannot be canceled.
Continue [yN] Details [d]d
Continue [yN] Details [d]y
Fetching
0% [Connecting to archive.ubuntu.com] http: ../sysdeps/posix/getaddrinfo.c:2603: getaddrinfo: Assertion `IN6_IS_ADDR_V4MAPPED (sin6->sin6_addr.s6_addr32)' failed.
Fetched 0 B in 0s (0 B/s)
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-upz4cs9i/artful", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeController.py", line 1888, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeController.py", line 1847, in fullUpgrade
if not self.doDistUpgradeFetching():
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeController.py", line 1113, in doDistUpgradeFetching
self.cache._fetch_archives(fetcher, pm)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 346, in _fetch_archives
return self._run_fetcher(fetcher)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 307, in _run_fetcher
res = fetcher.run()
SystemError: E:Method http has died unexpectedly!, E:Sub-process http received signal 6.
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 497, in add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 450, in write
block = f.read(1048576)
File "/usr/lib/python3.5/codecs.py", line 321, 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-upz4cs9i/artful", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeController.py", line 1888, in run
return self.fullUpgrade()
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeController.py", line 1847, in fullUpgrade
if not self.doDistUpgradeFetching():
File "/tmp/ubuntu-release-upgrader-upz4cs9i/DistUpgrade/DistUpgradeController.py", line 1113, in doDistUpgradeFetching
self.cache._fetch_archives(fetcher, pm)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 346, in _fetch_archives
return self._run_fetcher(fetcher)
File "/usr/lib/python3/dist-packages/apt/cache.py", line 307, in _run_fetcher
res = fetcher.run()
SystemError: E:Method http has died unexpectedly!, E:Sub-process http received signal 6.
user@host-1:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment