josephjo post at 2021-5-9 17:24:54

New OS Ubuntu Focal Error When UPdate

I using orange pi zero 2 with ubuntu focal live server. Newly installed. Run an update and this error?


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 94, in create
    self._fill_commands(con)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 138, in _fill_commands
    self._parse_single_commands_file(con, fp)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 176, 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

How do i solve this?


josephjo post at 2021-5-10 14:13:23

found the solution when I change to the armhf source.list

https://gist.github.com/josephlr/5034c933bbcfddc25a9275037821b048

josephjo post at 2021-5-10 14:18:51

Sorry there was a mistake on my solution, I realised it was bionic and not focal. End up I change to focal smae problems.
page: [1]
View full version: New OS Ubuntu Focal Error When UPdate