Upgrade to 13.10 crashes because of hidden file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-clone (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Following the normal procedure to upgrade with the update manager doesn't work. No error message, just stops working.
Starting it from the command line: sudo update-manager -d
Produces a stack trace in the terminal. The error is: UnicodeDecodeError: 'utf8' codec can't decode byte ...
This is in function _add_file_
(Sorry, didn't copy the whole stack trace; however you should be able to reproduce it from the instructions below).
The cause was a hidden file in /etc/apt/
This is a Vim undo file, which has a binary format, thus not utf-8 encoded: .google-
1. First of all, if the updater crashes with a stack trace, a dialog should appear to report the error.
Pointing to the log file, which I later found out to be /var/log/
I waited several minutes, thinking that it was busy in the background.
2. The update must ignore hidden files. The user may edit files with Vim, which may leave hidden undo files behind.
A better solution is to only use files that are known to be relevant, not blindly processing every random file.
3. If the update fails to read a file there should be an option to ignore the error and continue. Listing the file name and/or contents should give the user a hint about what he is skipping. This is the only way the upgrade can continue from a damaged system without the user manually hunting around for problems and guessing how to fix them.
---
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: i386
CrashDB: ubuntu
DistroRelease: Ubuntu 13.10
InstallationDate: Installed on 2012-11-18 (371 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.2)
MarkForUpload: True
NonfreeKernelMo
Package: ubuntu-
ProcVersionSign
Tags: saucy dist-upgrade
Uname: Linux 3.11.0-13-generic i686
UpgradeStatus: Upgraded to saucy on 2013-11-24 (0 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
VarLogDistupgra
VarLogDistupgra
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Expired → Confirmed |
importance: | Undecided → High |
Changed in apt-clone (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Brian Murray (brian-murray) |
importance: | Undecided → High |
summary: |
- Upgrade to 13.30 crashes because of hidden file + Upgrade to 13.10 crashes because of hidden file |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command, as it will automatically gather debugging information, in a terminal:
apport-collect 1254447
When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https:/ /wiki.ubuntu. com/ReportingBu gs.