when command-not-found is installed I get an apt-get update error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python3.10 (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
sqlite3 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
1)
Description: Ubuntu 22.04.2 LTS
Release: 22.04
2)
command-not-found:
Installed: 22.04.0
Candidate: 22.04.0
Version table:
*** 22.04.0 500
500 http://
500 http://
100 /var/lib/
3)
Tried running `apt-get update` I'd expect to run smoothly,
4)
but got the error
```
Get:20 http://
Fetched 499 kB in 1s (795 kB/s)
Traceback (most recent call last):
File "/usr/lib/
from CommandNotFound
File "/usr/lib/
import sqlite3
File "/usr/lib/
from sqlite3.dbapi2 import *
File "/usr/lib/
from _sqlite3 import *
ImportError: /usr/lib/
Reading package lists... Done
E: Problem executing scripts APT::Update:
E: Sub-process returned an error code
```
It seems there is a library it was removed from my Ubuntu, but I don't know which one it is (I'm not the only admin for this box), I realised if I remove `command-not-found` it "fixes" the error but just because I don't see it, because when I run `python3 -c 'import sqlite3' I get the same error.
I think whichever package has been removed from this installation should be part of the dependencies for `command-not-found` (I re-install command-not-found and the issue is not fixed)
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: command-not-found 22.04.0
ProcVersionSign
Uname: Linux 5.19.0-46-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 18 15:35:12 2023
InstallationDate: Installed on 2023-07-03 (15 days ago)
InstallationMedia: Ubuntu 22.04.2 LTS "Jammy Jellyfish" - Release amd64 (20230223)
PackageArchitec
SourcePackage: command-not-found
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | ubuntu → command-not-found (Ubuntu) |
affects: | command-not-found (Ubuntu) → python3.10 (Ubuntu) |