Kubarom Posted November 11, 2019 Share Posted November 11, 2019 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 More sharing options...
RussianNeuroMancer Posted February 9, 2020 Share Posted February 9, 2020 I have similar issue and it's looks like Armbian-specific. At least it's not arm-specific as I can not reproduce it on on RPi3B and Snapdragon-based Lenovo Yoga C630 WOS with regular Ubuntu, and it's not mentioned in package issues in Ubuntu bugtracker. Is anyone have an idea what cause this issue and how to resolve it? Link to comment Share on other sites More sharing options...
Kubarom Posted February 9, 2020 Author Share Posted February 9, 2020 On my side, problem disappeared on its own. After a while of not touching device I did update and now its fine Link to comment Share on other sites More sharing options...
Igor Posted February 9, 2020 Share Posted February 9, 2020 11 hours ago, RussianNeuroMancer said: Is anyone have an idea what cause this issue and how to resolve it? https://github.com/armbian/build/commit/871c2e89cc39a37ac9cc52095ba938706b0944e0 Link to comment Share on other sites More sharing options...
RussianNeuroMancer Posted February 29, 2020 Share Posted February 29, 2020 On 2/10/2020 at 2:19 AM, Igor said: https://github.com/armbian/build/commit/871c2e89cc39a37ac9cc52095ba938706b0944e0 Okay, I see this as way to workaround issue, but what is root cause that make command-not-found behave like this only on Armbian? (At least from what I see this happen only on Armbian.) Link to comment Share on other sites More sharing options...
Igor Posted February 29, 2020 Share Posted February 29, 2020 1 hour ago, RussianNeuroMancer said: only on Armbian It's a bug in Ubuntu user land - I didn't investigate further: https://bugs.launchpad.net/command-not-found/+bug/1824000 Link to comment Share on other sites More sharing options...
RussianNeuroMancer Posted March 2, 2020 Share Posted March 2, 2020 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 More sharing options...
RussianNeuroMancer Posted November 7, 2020 Share Posted November 7, 2020 Issue was caused by https://bugs.launchpad.net/ubuntu/+source/command-not-found/+bug/1876034 Link to comment Share on other sites More sharing options...
Recommended Posts