Earlier today I upgraded my main laptop to Ubuntu 11.10 (Oneiric Ocelot). The upgrade did not go very smooth.
Almost immediately during the upgrade, even before the download of all new packages, the upgrade failed with the following message:
Traceback (most recent call last): File "/tmp/update-manager-Np9Td4/oneiric", line 7, insys.exit(main()) File "/tmp/update-manager-Np9Td4/DistUpgradeMain.py", line 199, in main if app.run(): File "/tmp/update-manager-Np9Td4/DistUpgradeController.py", line 1670, in run return self.fullUpgrade() File "/tmp/update-manager-Np9Td4/DistUpgradeController.py", line 1627, in fullUpgrade if not self.askDistUpgrade(): File "/tmp/update-manager-Np9Td4/DistUpgradeController.py", line 895, in askDistUpgrade if not self._checkFreeSpace(): File "/tmp/update-manager-Np9Td4/DistUpgradeController.py", line 861, in _checkFreeSpace with_snapshots = self._is_apt_btrfs_snapshot_supported() File "/tmp/update-manager-Np9Td4/DistUpgradeController.py", line 1005, in _is_apt_btrfs_snapshot_supported apt_btrfs = apt_btrfs_snapshot.AptBtrfsSnapshot() File "/tmp/update-manager-Np9Td4/apt_btrfs_snapshot.py", line 85, in __init__ self.fstab = Fstab(fstab) File "/tmp/update-manager-Np9Td4/apt_btrfs_snapshot.py", line 53, in __init__ entry = FstabEntry.from_line(line) File "/tmp/update-manager-Np9Td4/apt_btrfs_snapshot.py", line 31, in from_line return FstabEntry(*line.split()) TypeError: __init__() takes at most 7 arguments (9 given)
I'm not sure what the upgrade process is trying to do with my /etc/fstab file but it clearly did not like the contents.
Fortunately the upgrade did start without any problem, after disabling the fstab entries of some network drives.

7 Comments
I'm having the same issue,
Submitted by Anonymous on
I'm having the same issue, but all I have is one mounted drive (not network, just one ext4 partition). I don't suppose you care to list the fstab contents, or at least the flags? I'm curious to see if I can see what is triggering the error, as I can't very well disable the sole mounted partition during install.
Here's my /etc/fstab:
Submitted by litrik on
Here's my /etc/fstab (I had to disable the entry pointing to my QNAP NAS):
I'm having the same problem,
Submitted by Paul Baranowski on
I'm having the same problem, and the upgrade is not happening at all. Update manager just crashes at that point.
Same issue for me. I have
Submitted by Andrew on
Same issue for me. I have removed all xtra entries from fstab and tried again but it still no go
OK, what worked for me was
Submitted by Andrew on
OK, what worked for me was disabling the fstab and deleting everything from /tmp folder
then retrying the update
Yeah, I tried upgrading via
Submitted by Devon on
Yeah, I tried upgrading via the system but it failed due to some network connection problem, so I burned the CD & tried it that way. Right now my upgrade CD for 11.10 has been stalled for about an hour. I thought I'd Google about it before daring to halt it & see if the system will work or if I have to try again or whatever. I soooooo didn't need any more computer issues right now. Glad I'm not the only one with issues upgrading.
I think it's a bug that's
Submitted by Dimitri on
I think it's a bug that's already been fixed, but hasn't (yet) been pushed to Natty.
Unless I'm reading the bug report incorrectly (https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/872145), the issue has to do with comments being confused as arguments.
Try removing any comments and see if that does the trick.