在linux系统中安装moos-ivp遇到的各种问题汇总
文章目录
前言
这里是我最近在安装moos-ivp中遇到的各式各样问题的汇总。其中大部分的问题是linux系统配置上的问题。
一、安装yum工具
在安装yum工具是安装报错:
Do you want to continue [Y/n]? Y
E: Could not perform immediate configuration on 'python2.7-minimal'.Please see man 5 apt.conf under APT::Immediate-Configure for details. (2)
解决办法:
在apt-get命令里加上-o APT::Immediate-Configure=0暂时禁止检查即可。
二、执行:sudo apt-get -f install 、 出现如下错误
错误:
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
ncview : Depends: libnetcdf11 (>= 4.0.1) but it is not going to be installed
Depends: libudunits2-0 (>= 2.2.14) but it is not going to be installed
teamviewer : Depends: libqt5x11extras5 (>= 5.5) but it is not going to be installed or
qt56-teamviewer but it is not installable
Depends: qml-module-qtquick-controls (>= 5.5) but it is not going to be installed or
qt56-teamviewer but it is not installable
Depends: qml-module-qtquick-dialogs (>= 5.5) but it is not going to be installed or
qt56-teamviewer but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
解决:
sudo apt-get --fix-broken install
(修复broken的安装包)
三、apt-get安装任何软件都报错
执行apt-get命令时报错:E:Unmet dependencies. Try ‘apt-get -f install’ with no packages
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
sudo apt-get -f install 输入该命令重新加载即可恢复
``
四、解决ubuntu下 error occurred during the signature verification
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com lucid-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com lucid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://us.archive.ubuntu.com lucid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
解决方案:
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update
四、ubuntu 配置apt-get源
使用apt-get下载过程中继续报错,之后查询得知,可能是因为下载源设置的有问题,于是对下载源进行修改。
1. 原文件备份
sudo mv /etc/apt/sources.list /etc/apt/sources.list_bk
2. 编辑源列表文件
sudo vim /etc/apt/sources.list
3. 添加如下内容
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
4. 更新源
sudo apt-get update
总结
我昨天询问师兄之后,他告知我,他们使用的仍旧是老版本的moos。在今天我想办法各种安装新版本moos不成功的情况之下,我决定放弃最新版本的moos安装。转头投身于13年moos版本的怀抱,在经历了小小的波折后,没想到这次安装过程异常顺利,编译软件执行的非常丝滑,给人以德芙的美感。最后我顺利的打开了moos的界面,正式开始了我moos的学习过程。
总结:老版本的ubuntu系统就适合老版本的moos软件。安装新版本时,cmake编译器因为版本过低无法编译软件,而去升级cmake软件时又无法成功升级,反而是执行下载指令apt-get发生了各种毛病,在修复apt-get时需要去配置各种下载源和DNS网关,配置好之后再次尝试还是失败。这就如同一个连环锁,一环套一环,把人困死在其中。人生,有时候退一步反而会海阔天空。