Debian9安装db4.8

今天本站有需要在Debian9系统中安装db4.8-util软件包,一般这个软件包都是直接在源中存在的,只要直接yum或者apt就可以安装。这里在尝试用到apt-get install db4.8-util去安装的时候出现报错Unable to locate package db4.8-util。

[email protected]:~# apt-get install db4.8-util Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package db4.8-util E: Couldn\’t find any package by glob \’db4.8-util\’ E: Couldn\’t find any package by regex \’db4.8-util\’

开始以为是源没有升级更新导致的,于是先apt update -y之后再安装也是这样无法解决。但是我还是觉得是源的问题,以为之前在其他主机中的DEBIAN中是可以安装的,所以暂时不去直接编译安装,找个源升级。

这里想到\”解决Debian环境无法update更新源问题及更换阿里云镜像\”,替换阿里云镜像。

第一、替换文件

vi /etc/apt/sources.list

第二、替换源内容

deb http://mirrors.aliyun.com/debian wheezy main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy main contrib non-free deb http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb-src http://mirrors.aliyun.com/debian wheezy-updates main contrib non-free deb http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free deb-src http://mirrors.aliyun.com/debian-security wheezy/updates main contrib non-free

可以把sources.list先备份一份,然后我们将sources.list的内容全部替换成上面的阿里云源,然后再重新apt-get update -y之后可以完成更新。

第三、重新安装

apt-get install db4.8-util

这样问题解决。

推荐站内搜索:国内域名注册、个人虚拟主机、云服务器vps、高防美国服务器、网站备案域名查询、免费cn域名注册、电信主机租用、域名备案查询、高防服务器租用qy、已备案域名查询、