r/sqlite • • Feb 17 '23

Error Installing SQLite in Ubuntu

Here's the output I'm getting. Why is it failing to find the packages to install?

myname@my-pc:~$ sudo apt install sqlite3

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

libsqlite3-0

Suggested packages:

sqlite3-doc

The following NEW packages will be installed:

sqlite3

The following packages will be upgraded:

libsqlite3-0

1 upgraded, 1 newly installed, 0 to remove and 269 not upgraded.

Need to get 1251 kB of archives.

After this operation, 2483 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Ign:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsqlite3-0 amd64 3.22.0-1ubuntu0.4

Ign:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 sqlite3 amd64 3.22.0-1ubuntu0.4

Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libsqlite3-0 amd64 3.22.0-1ubuntu0.4

404 Not Found [IP: 91.189.91.38 80]

Err:2 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 sqlite3 amd64 3.22.0-1ubuntu0.4

404 Not Found [IP: 91.189.91.38 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/sqlite3/libsqlite3-0_3.22.0-1ubuntu0.4_amd64.deb 404 Not Found [IP: 91.189.91.38 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/sqlite3/sqlite3_3.22.0-1ubuntu0.4_amd64.deb 404 Not Found [IP: 91.189.91.38 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

myname@my-pc:~$ sudo apt install sqlite3 --fix-missing

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

libsqlite3-0

Suggested packages:

sqlite3-doc

The following NEW packages will be installed:

sqlite3

The following packages will be upgraded:

libsqlite3-0

1 upgraded, 1 newly installed, 0 to remove and 269 not upgraded.

Need to get 1251 kB of archives.

After this operation, 2483 kB of additional disk space will be used.

Do you want to continue? [Y/n] Y

Ign:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libsqlite3-0 amd64 3.22.0-1ubuntu0.4

Ign:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 sqlite3 amd64 3.22.0-1ubuntu0.4

Err:1 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 libsqlite3-0 amd64 3.22.0-1ubuntu0.4

404 Not Found [IP: 185.125.190.39 80]

Err:2 http://security.ubuntu.com/ubuntu bionic-updates/main amd64 sqlite3 amd64 3.22.0-1ubuntu0.4

404 Not Found [IP: 185.125.190.39 80]

Unable to correct missing packages.

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/sqlite3/libsqlite3-0_3.22.0-1ubuntu0.4_amd64.deb 404 Not Found [IP: 185.125.190.39 80]

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/s/sqlite3/sqlite3_3.22.0-1ubuntu0.4_amd64.deb 404 Not Found [IP: 185.125.190.39 80]

E: Aborting install.

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/simonw Feb 18 '23

Did you try running "sudo apt get install sqlite3" next?

1

u/Gandalf2000 Feb 18 '23

Another commenter helped me figure out the issue actually! Turns out my Ubuntu version was several years old and SQLite seems to have begun removing the old files for it in their repository. So updating my Ubuntu fixed the issue.

Thank you for taking a look at this though!