View: 5352|Reply: 2

New OS Ubuntu Focal Error When UPdate

[Copy link]

9

threads

16

posts

69

credits

Registered member

Rank: 2

credits
69
Published in 2021-5-9 17:24:54 | Show all floors |Read mode
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:ost-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?


9

threads

16

posts

69

credits

Registered member

Rank: 2

credits
69
 Author| Published in 2021-5-10 14:13:23 | Show all floors
found the solution when I change to the armhf source.list

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

9

threads

16

posts

69

credits

Registered member

Rank: 2

credits
69
 Author| Published in 2021-5-10 14:18:51 | Show all floors
Sorry there was a mistake on my solution, I realised it was bionic and not focal. End up I change to focal smae problems.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list