Wizzard Posted January 21, 2020 Posted January 21, 2020 (edited) Hello, guys. I am really enjoying Armbian on PBP. I have tried upgrading to Ubuntu 19.10 and it runs fine, just have one problem on apt update (also when I change the sources.list to disco) I found that changing some script file or modifying some symlink should solve it, but I am not sure how to do that. Spoiler Fetched 29.6 MB in 13s (2,325 kB/s) Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 26, in <module> col.create(db) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create self._fill_commands(con) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands self._parse_single_commands_file(con, fp) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file suite=tagf.section["suite"] KeyError: 'suite' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f: FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_lib_cnf-update-db.0.crash' Original exception was: Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 26, in <module> col.create(db) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create self._fill_commands(con) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands self._parse_single_commands_file(con, fp) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file suite=tagf.section["suite"] KeyError: 'suite' Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code roman@pinebook:~$ sudo apt update [sudo] password for roman: Hit:1 http://ports.ubuntu.com disco InRelease Hit:3 http://ports.ubuntu.com disco-security InRelease Hit:4 http://ports.ubuntu.com disco-updates InRelease Hit:5 http://ports.ubuntu.com disco-backports InRelease Hit:2 https://apt.armbian.com bionic InRelease Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 26, in <module> col.create(db) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create self._fill_commands(con) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands self._parse_single_commands_file(con, fp) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file suite=tagf.section["suite"] KeyError: 'suite' Error in sys.excepthook: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f: FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_lib_cnf-update-db.0.crash' Original exception was: Traceback (most recent call last): File "/usr/lib/cnf-update-db", line 26, in <module> col.create(db) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 93, in create self._fill_commands(con) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 127, in _fill_commands self._parse_single_commands_file(con, fp) File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 165, in _parse_single_commands_file suite=tagf.section["suite"] KeyError: 'suite' Reading package lists... Done E: Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/lib/command-not-found/ -a -e /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' E: Sub-process returned an error code Edited January 21, 2020 by TRS-80 put wall of error messages inside spoiler
TRS-80 Posted January 21, 2020 Posted January 21, 2020 Hi Roman, and welcome to the forums! I split this off the other topic, as it is general software related and not hardware nor Armbian specific. One of Devs (Igor actually) confirmed to me that this is a known (to him) Ubuntu bug. Sorry but I don't have any more information right now. Maybe someone will come along who does. If/when you find a solution (or workaround), please remember to share it back here so others can find it in the future. Thanks!
Wizzard Posted January 21, 2020 Author Posted January 21, 2020 Hello and thank you very much for the reply. I will try to search and solve this problem. In fact, I think it should have something to do with Armbian, because I do not see this bug on regular Ubuntu on PBP either other computers I am using. I will keep you posted
Igor Posted January 21, 2020 Posted January 21, 2020 6 minutes ago, Roman Paholík said: In fact, I think it should have something to do with Armbian, because I do not see this bug on regular Ubuntu on PBP either other computers I am using. It is possible that its only related to ARM builds. If you find up something, we can fix but perhaps we shall focus on 20.04 (Focal). It's inside the build system but chroot is / (was?) completely broken so we can't build some needed packages.
Wizzard Posted January 21, 2020 Author Posted January 21, 2020 Ok, just to be more precise, the errors like this happens in all versions disco onwards, including focal. I really look forward to 20.04 stable release.
Recommended Posts