在 debian jessie 上安装 libmariadbclient-dev
install libmariadbclient-dev on debian jessie
我必须在我的 Debian8 上安装 libmariadbclient-dev,但不能:
$ sudo apt-get install libmariadbclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmariadbclient-dev
我该怎么办,请帮忙
您可以从 MariaDB 存储库安装它。
使用repository configuration tool选择正确的架构、版本和镜像。
按照页面上显示的说明进行操作。
示例(不要按原样使用,确保您选择了正确的版本和体系结构,以及合适的镜像)!
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.0/debian jessie main'
sudo apt-get update
You can also create a custom MariaDB sources.list file. To do so, copy
and paste the following into a file under /etc/apt/sources.list.d/ (we
suggest naming the file MariaDB.list or something similar), or add it
to the bottom of your /etc/apt/sources.list file.
# MariaDB 10.0 repository list - created 2016-12-30 14:56 UTC
# http://downloads.mariadb.org/mariadb/repositories/
deb [arch=amd64,i386] http://mirror.netinch.com/pub/mariadb/repo/10.0/debian jessie main
deb-src http://mirror.netinch.com/pub/mariadb/repo/10.0/debian jessie main
配置好 repo 后,运行 apt-get update
然后按照之前尝试的方式安装软件包:
sudo apt-get install libmariadbclient-dev
我必须在我的 Debian8 上安装 libmariadbclient-dev,但不能:
$ sudo apt-get install libmariadbclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmariadbclient-dev
我该怎么办,请帮忙
您可以从 MariaDB 存储库安装它。
使用repository configuration tool选择正确的架构、版本和镜像。
按照页面上显示的说明进行操作。
示例(不要按原样使用,确保您选择了正确的版本和体系结构,以及合适的镜像)!
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.netinch.com/pub/mariadb/repo/10.0/debian jessie main'
sudo apt-get update
You can also create a custom MariaDB sources.list file. To do so, copy and paste the following into a file under /etc/apt/sources.list.d/ (we suggest naming the file MariaDB.list or something similar), or add it to the bottom of your /etc/apt/sources.list file.
# MariaDB 10.0 repository list - created 2016-12-30 14:56 UTC
# http://downloads.mariadb.org/mariadb/repositories/
deb [arch=amd64,i386] http://mirror.netinch.com/pub/mariadb/repo/10.0/debian jessie main
deb-src http://mirror.netinch.com/pub/mariadb/repo/10.0/debian jessie main
配置好 repo 后,运行 apt-get update
然后按照之前尝试的方式安装软件包:
sudo apt-get install libmariadbclient-dev