do-release-upgrade fails if /var/log/installer is a file

Bug #1826896 reported by Rusu Vlad
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Triaged
Low
Unassigned

Bug Description

I did allow normal installs, not only lts. but it always ends with the same error

output of lsb_release -rd:
`root@play:~# lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04`

output of do-release-upgrade:
`root@play:~# do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,243 kB]
Fetched 1,244 kB in 0s (0 B/s)
authenticate 'cosmic.tar.gz' against 'cosmic.tar.gz.gpg'
extracting 'cosmic.tar.gz'
can't load DistUpgradeViewText ([Errno 20] Not a directory: '/var/log/installer/media-info')
can't load DistUpgradeViewGtk3 (Namespace Vte not available)
can't load DistUpgradeViewKDE (No module named 'PyQt4')
can't load DistUpgradeViewText ([Errno 20] Not a directory: '/var/log/installer/media-info')
No view can be imported, aborting
`

I'm not sure what is going on, but I did have some DNS related issues where resolv.conf was getting overwritten with the 127 address which made apt, wget, ping stop working.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: ubuntu-release-upgrader-core 1:18.04.31
ProcVersionSignature: Ubuntu 4.15.0-47.50-generic 4.15.18
Uname: Linux 4.15.0-47-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.6
Architecture: amd64
CrashDB: ubuntu
Date: Mon Apr 29 17:45:06 2019
PackageArchitecture: all
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: release-upgrade
UpgradeStatus: Upgraded to bionic on 2019-04-29 (0 days ago)
mtime.conffile..etc.update-manager.release-upgrades: 2019-04-29T00:55:40.078049

Revision history for this message
Rusu Vlad (iverol) wrote :
Revision history for this message
Rusu Vlad (iverol) wrote :

Ok solved it

/var/log/installer was a file so I just removed it.
also installed python-qt4

now everything works

Revision history for this message
Brian Murray (brian-murray) wrote :

I was able to recreate this by removing the /var/log/installer folder and replacing it with a zero byte file.

bdmurray@clean-bionic-amd64:~$ sudo rm -fr /var/log/installer
[sudo] password for bdmurray:
bdmurray@clean-bionic-amd64:~$ sudo touch /var/log/installer
bdmurray@clean-bionic-amd64:~$ do-release-upgrade
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,243 kB]
Fetched 1,244 kB in 0s (0 B/s)
authenticate 'cosmic.tar.gz' against 'cosmic.tar.gz.gpg'
extracting 'cosmic.tar.gz'
can't load DistUpgradeViewText ([Errno 20] Not a directory: '/var/log/installer/media-info')
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
can't load DistUpgradeViewGtk3 ([Errno 20] Not a directory: '/var/log/installer/media-info')
can't load DistUpgradeViewKDE (No module named 'PyQt4')
can't load DistUpgradeViewText ([Errno 20] Not a directory: '/var/log/installer/media-info')
No view can be imported, aborting

Given that ubiquity creates the /var/log/installer folder and that I'm unable to recreate this by just removing the folder I'm setting this to a low priority.

Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Triaged
importance: Undecided → Low
summary: - do-release-upgrade fails after cosmic.tar.gz extraction on 18.04.2 LTS
+ do-release-upgrade fails if /var/log/installer is a file
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.