在 Debian buster/sid 中​​找不到软件包 libmysql++-dev

在 Debian buster/sid 中​​找不到软件包 libmysql++-dev

我正在尝试在 Debian 服务器上安装libmysql++-dev,但收到以下错误“无法找到软件包”。

root@rs-dal-karthik-test:~# apt-cache search libmysql++-dev
root@rs-dal-karthik-test:~# apt-get install libmysql++-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libmysql++-dev
E: Couldn't find any package by regex 'libmysql++-dev'

我更新/etc/apt/sources.list如下:

root@rs-dal-karthik-test:~# cat /etc/apt/sources.list
deb http://mirror.rackspace.com/debian buster main contrib non-free
deb-src http://mirror.rackspace.com/debian buster main contrib non-free

deb http://mirror.rackspace.com/debian-security/ buster/updates main contrib non-free
deb-src http://mirror.rackspace.com/debian-security/ buster/updates main contrib non-free
root@rs-dal-karthik-test:~# 

apt-get upgrade在更新sources.list文件后运行,但似乎没有任何作用。

官方 Debian buster/sid 链接有软件包信息https://packages.debian.org/sid/libmysql++-dev

以下是操作系统详细信息:

root@rs-dal-karthik-test:~# cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux buster/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@rs-dal-karthik-test:~# 

我不确定如何在我的服务器上安装该软件包。

编辑 正如下面的评论中提到的,修改sources.list后更新输出集

root@rs-dal-karthik-test:~# cat /etc/apt/sources.list
deb http://mirror.rackspace.com/debian buster main contrib non-free
deb-src http://mirror.rackspace.com/debian buster main contrib non-free

deb http://mirror.rackspace.com/debian-security/ buster/updates main contrib non-free
deb-src http://mirror.rackspace.com/debian-security/ buster/updates main contrib non-free

deb http://ftp.us.debian.org/debian unstable main contrib non-free
deb http://ftp.us.debian.org/debian testing main contrib non-free
root@rs-dal-karthik-test:~# apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  gir1.2-glib-2.0 libgirepository-1.0-1 libjs-sphinxdoc libjs-underscore libpython-all-dev python-all python-all-dev python-asn1crypto python-cffi-backend python-configparser python-crypto python-cryptography python-dbus
  python-entrypoints python-enum34 python-gi python-idna python-ipaddress python-keyring python-keyrings.alt python-pip-whl python-secretstorage python-six python-wheel python-xdg
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@rs-dal-karthik-test:~# apt-get install libmysql++-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libmysql++-dev
E: Couldn't find any package by regex 'libmysql++-dev'
root@rs-dal-karthik-test:~# 

答案1

您的存储库仅引用 Buster,并且该mysql++包集不是 Buster 的一部分,因为包装有错误(请参阅#871302#919377)。

测试用户的最佳实践建议配置测试(当前为 Buster)和不稳定的存储库,以便您可以在非测试时安装不稳定的软件包。但这确实会造成您安装有缺陷的软件的可能性,就像这里的情况一样。

我不建议在服务器上运行测试,尤其是现在——测试被冻结,为 Debian 的下一个版本做准备,因此更新(包括安全修复)可能需要比平时更长的时间才能在服务器上提供。

相关内容