Jump to content

Problem executing scripts APT::Update::Post-Invoke-Success


Kubarom

Recommended Posts

Hi,

I have Rock64 with fresh armbian installed:

Debian GNU/Linux 10 (buster)

4.4.192-rockchip64

 

It was installed 2 days ago , first thing I did was "apt-get update" and then "upgrade" which upgraded 3 packages at most.

Now whenever I try to run apt-get update I get error with post install :

 

~# apt-get update                                                                                     Hit:1 http://security.debian.org buster/updates InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian buster InRelease             
Hit:2 https://apt.armbian.com buster InRelease                      
Hit:4 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian buster-backports InRelease
Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 26, in <module>
    col.create(db)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 94, in create
    self._fill_commands(con)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 132, in _fill_commands
    self._parse_single_contents_file(con, f, fp.stdout)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 228, in _parse_single_contents_file
    l = l.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 72: invalid continuation byte
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

Searching in google did not yeld too much results and I'm not linux expert to know what might be culprit

Any help would be awesome 

 

Best Regards

 

Link to comment
Share on other sites

On 2/29/2020 at 6:08 PM, Igor said:


It's a bug in Ubuntu user land - I didn't investigate further:

https://bugs.launchpad.net/command-not-found/+bug/1824000

 

 

You sure this one is relevant? Traceback in this bugreport end up with "sqlite3.OperationalError: unable to open database file" (it can't open it due to permission issue caused by snapd) and it's looks like unrelated to error we see on Armbian.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines