
安装lvm2时报了上面这个错误,然后搜索解决办法
方法一(这网上找的):
#是apt-get -f install=apt-get install -f ,是修复依赖关系(depends)的命令,就是假如你的系统上有某个package不满足依赖条件,这个命令就会自动修复,安装那个package依赖的package。 sudo apt-get install -f #遇到dpkg被中断,您必须手工运行 sudo dpkg --configure -a解决此问题 sudo dpkg --configure -a #清除apt的缓存 sudo apt-get clean sudo apt-get update sudo apt-get upgrade
楼主试了这方法并没有解决问题。。。
方法二(可能是源的问题):
楼主的环境为Ubuntu16.04,我之前的源为(cat /etc/apt/sources.list)
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliy

在尝试安装lvm2时遇到依赖libdevmapper-event1.02.1未安装的问题。尝试了网络上的方法未果后,通过更换Ubuntu16.04对应的软件源,更新并重新安装lvm2,最终成功解决了问题。
最低0.47元/天 解锁文章
966

被折叠的 条评论
为什么被折叠?



