欢迎光临
我们一直在努力
卡尔云 大网数据--高防低价服务器抢购 低至28/月十堰4-4就在零零陆云计算 金华高防物理机 40H64G 30M 158/月 819云计算香港20MCN2 300元/月
林枫云-专注独立IP高频VPS 低价高性价比—迅速云 GoDo云计算韩国物理机低至299元/月 龍行数据:美国100M服务器 299元/月 络V云计算:新加坡100M服务器 1200元/月
CNMCDN防护稳定又实惠 轻松云:美国200兆VPS16元/月 亦宁云200M大带宽 动态BGP低至35/月 低价高效上云-道之云网络 【科御云】香港CDN、延迟低速度快防御高

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。

[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

这样问题解决。

赞(0)
未经允许不得转载:沃园 » Debian9安装db4.8-util出现\\”Couldn\\’t find any package\\”

评论 抢沙发

评论前必须登录!

立即登录   注册