Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

 

  • Author

On my side, problem disappeared on its own. After a while of not touching device I did update and now its fine

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.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.