Reinstall Ubuntu (with preserving existing data) shows error message due to "Could not get lock /target/var/cache/apt/archives/lock"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APT |
New
|
Undecided
|
Unassigned | ||
ubiquity |
New
|
Undecided
|
Unassigned | ||
apt (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Eoan |
Invalid
|
Undecided
|
Unassigned | ||
ubiquity (Ubuntu) |
Won't Fix
|
High
|
Unassigned | ||
Eoan |
Won't Fix
|
High
|
Unassigned |
Bug Description
When trying to reinstall an existing Ubuntu cosmic installation using latest 18.10 desktop images, the install shows an error dialog around the end of the installation with an "Error restoring installed applications". Looking at the syslog such a traceback can be seen:
apt_pkg.Error: E:Could not get lock /target/
After reproducing this on a live session, after chrooting into /target indeed any apt-get install operations result in the same lock-file error. The whole syslog of the reinstall attached to the bug.
Test case:
* Download latest cosmic image
* Install cosmic on the whole disk (can be on a VM)
* (optional) Boot into the system and leave a file in the home directory (to leave a trace, just in case)
* Reboot and install cosmic using the first option in ubiquity: Reinstall Ubuntu
* Finish configuration
The install itself doesn't fail, but around the end of the installation process the error dialog appears. System is still bootable but left with old packages.
Related branches
- Brian Murray (community): Needs Resubmitting
- Jean-Baptiste Lallement: Needs Fixing
- Michael Hudson-Doyle: Approve
-
Diff: 259 lines (+19/-116) (has conflicts)7 files modifieddebian/changelog (+8/-0)
debian/control (+0/-1)
debian/ubiquity.templates (+10/-1)
dev/null (+0/-70)
gui/gtk/stepPartAsk.ui (+1/-1)
partman/finish.d/_numbers (+0/-1)
scripts/plugininstall.py (+0/-42)
tags: |
added: rls-dd-incoming removed: release-dd-incoming |
tags: | added: ubiquity-18.10.12 |
tags: | added: cosmic |
Changed in ubiquity (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in ubiquity (Ubuntu): | |
status: | Triaged → Incomplete |
tags: | added: id-5cf932c4a06ae8470c614fa6 |
tags: | removed: rls-ee-incoming |
tags: | added: restore-new-distro |
Changed in ubiquity (Ubuntu): | |
status: | Fix Released → Won't Fix |
tags: | added: fr-177 |
Also seen running 'manual partitioning' test case.