专注云服务商活动
网站运营运维笔记

Debian9安装db4.8-util出现"Couldn't find any package"

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

root@li924-42:~# 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'

Debian9安装db4.8-util出现"Couldn't find any package"

开始以为是源没有升级更新导致的,于是先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

这样问题解决。

域名主机商优惠信息推送QQ群: 627775477 获取商家优惠推送,禁言。
赞(0)
未经允许不得转载:老左笔记 » Debian9安装db4.8-util出现"Couldn't find any package"


扫码关注公众号

获取更多站长圈的新鲜事儿!
创业、运营、新知