首页 > 解决方案 > 如何将 Ubuntu 18.04 sqlite3 从 3.13 升级到新版本 3.25

问题描述

我按照这篇文章(系统安装部分)将 Ubuntu 18.04 sqlite 3.13 升级到 sqlite 3.25。Ubuntu从14升级到18,3年前安装了sqlite。

http://charlesleifer.com/blog/compiling-sqlite-for-use-with-python-applications/

所有步骤都成功了,但是 sqlite 还是老版本 3.13。

Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 12:22:00) 
GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.13.0'

它应该是?

'3.25.0'

我还尝试使用本文中的命令删除 sqlite 3.13 并重新安装:

https://www.thelinuxfaq.com/ubuntu/ubuntu-17-04-zesty-zapus/sqlite3?type=uninstall

它不能被删除。尝试了所有删除命令,如下所示,sqlite3 仍然处于活动状态:

sudo apt-get autoremove --purge sqlite3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'sqlite3' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 115 not upgraded.
fake@fakedesktop1:~$ sqlite3 --version
3.13.0 2016-05-18 10:57:30 fc49f556e48970561d7ab6a2f24fdd7d9eb81ff2

我想知道如何将 sqlite3 升级到新版本 3.25。我的步骤有什么问题?

标签: sqliteubuntu-18.04

解决方案


推荐阅读