Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 677  / 3 Years ago, tue, july 20, 2021, 11:41:56

So I attempted to upgrade by running



sudo do-release-upgrade


as it specifies in my login prompt. It runs for about a minute before crashing with the error:



AttributeError: 'AptCdrom' object has no attribute 'restore_backup'


Can I assume this is a bug and that I won't be able to upgrade from the command line?



Is there any workaround?



Edit: This is a headless server.


More From » 12.04

 Answers
6

The problem was due to an old postgresql package that had somehow been blacklisted from removal. Since the upgrade required this package to be uninstalled, but couldn't due to the blacklist, it failed, but this true error was hidden in the logs and only this Python traceback was immediately visible.



Manually removing the package then re-running sudo do-release-upgrade fixed the error.



cat /var/log/dist-upgrade/main.log|less
...
Dist-upgrade failed: 'The package 'postgresql-9.4-postgis-2.1' is marked for removal but it is in the removal blacklist.'

[#22984] Thursday, July 22, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tigehanc

Total Points: 162
Total Questions: 113
Total Answers: 122

Location: Zambia
Member since Sat, Oct 31, 2020
4 Years ago
;