[Bug 1796193] Re: DistUpgradeViewNonInteractive crashes / requires interaction
Brian Murray
brian at ubuntu.com
Fri May 10 19:44:40 UTC 2019
To elaborate more I seen the following in the console output of a job
which upgrades from bionic to cosmic:
Setting up ubuntu-release-upgrader-core (1:18.10.11.6) ...
Configuration file '/etc/update-manager/release-upgrades'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** release-upgrades (Y/I/N/O/D/Z) [default=N] ? dpkg: error: dpkg status database is locked by another process
auto-upgrade [06:09:35]: ERROR: ERROR: Something went wrong with the upgrade.
release-upgrades has had Prompt changed from lts to normal so that we
can test the upgrade to cosmic and then we get the bytes like object
crash.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1796193
Title:
DistUpgradeViewNonInteractive crashes / requires interaction
Status in apt package in Ubuntu:
Incomplete
Status in ubuntu-release-upgrader package in Ubuntu:
In Progress
Status in apt source package in Cosmic:
New
Status in ubuntu-release-upgrader source package in Cosmic:
In Progress
Status in apt source package in Disco:
New
Status in ubuntu-release-upgrader source package in Disco:
In Progress
Status in apt source package in Eoan:
Incomplete
Status in ubuntu-release-upgrader source package in Eoan:
In Progress
Bug description:
I'm trying to do some automated testing that involved upgrading a
system from xenial to bionic, so I need it to not ask for user input.
Before running do-release-upgrade, the system got a fresh dist-upgrade
and reboot.
To avoid interactive responses, I'm using:
$ sudo do-release-upgrade -d -f DistUpgradeViewNonInteractive
Part way through the upgrade, I do get prompted for something though:
Preparing to unpack .../apt_1.6.3ubuntu0.1_amd64.deb ...
Unpacking apt (1.6.3ubuntu0.1) over (1.2.27) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot
be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_EGL.conf: No such file
or directory
/sbin/ldconfig.real: Warning: ignoring configuration file that cannot
be opened: /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf: No such file or
directory
Setting up apt (1.6.3ubuntu0.1) ...
Installing new version of config file /etc/apt/apt.conf.d/01autoremove
...
Configuration file '/etc/cron.daily/apt-compat'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
Comparing the sha1 of apt-compat before the upgrade to another xenial
system that has been unmodified, they are the same:
In /var/log/dist-upgrade/main.log, I also found this:
2018-10-04 14:20:24,575 WARNING got a conffile-prompt from dpkg for file: '/etc/cron.daily/apt-compat'
2018-10-04 14:20:29,580 ERROR error 'a bytes-like object is required, not 'str'' when trying to write to the conffile
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1796193/+subscriptions
More information about the foundations-bugs
mailing list