虚拟机: vmware
系统:ubantu14.10
ubantu下:
1、安装工具:apt-get
- sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
- sudo vim /etc/apt/sources.list #修改源列表,将阿里云源复制到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.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
- sudo apt-get update #更新本地源列表;
- sudo apt-get upgrade
- sudo apt-get install
2、安装工具:aptitude
有些软件使用apt-get 安装不成功,可以使用aptitude 自动解决依赖关系安装。
sudo apt-get install aptitude
sudo aptitude install xxx
会有类似提示:
The following packages have unmet dependencies:
libc6-dev : Depends: libc6 (= 2.31-0ubuntu9.2) but 2.31-0ubuntu9.3 is installed
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libacl1-dev [Not Installed]
2) libattr1-dev [Not Installed]
……
93) ros-galactic-visualization-msgs [Not Installed]
94) zlib1g-dev [Not Installed]
Leave the following dependencies unresolved:
95) libpython3.8-dev recommends libc6-dev | libc-dev
96) python3.8-dev recommends libc6-dev | libc-dev
Accept this solution? [Y/n/q/?]
意思就是需要依赖2.31-0ubuntu9.2,现在的是2.31-0ubuntu9.3,选择n,然后会对软件进行升降级,选择y,一般久安装成功了。
2、安装git
sudo apt-get install git
git config --global user.name “xxx”
git config --global user.email “youxiang@”
ssh-keygen -t rsa -C “youxiang@”
cat ~/.ssh/id_rsa.pub
3、clone代码
openbmc代码:
https://github.com/edge-core/openbmc
- git clone server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile解决:
git config --global http.sslverify false
- gnutls_handshake() failed: Error in the pull function.
网上很多是重置代理解决,试过了很多方法,还是不行
最简单的将 clone的地址换成ssh地址,如
git@github.com:openembedded/meta-openembedded.git
4、编译代码
- 编译失败
warning的提示Ubuntu-18.04 上没有构架过这个工程,所以我安装了14.10。
WARNING: supported “poky-1.7”
WARNING: supported “poky-1.8”
WARNING: supported “Ubuntu-14.04”
WARNING: supported “Ubuntu-14.10”
WARNING: supported “Fedora-21”
WARNING: supported “CentOS-6."
WARNING: supported "CentOS-7.”
WARNING: supported “Debian-7."
WARNING: supported "Debian-8.”
WARNING: supported “openSUSE-13.2”
WARNING: supported “CentOS-Linux-7.2.*”
WARNING: supported “” - 在Ubuntu-14.10 再次编译:
提示缺少makeinfo、gwak等,那么他们对应什么软件包?
apt-cache search texinfo
或
apt-file search bin/makeinfo - do_fetch失败解决方法:
https://blog.csdn.net/qq_34160841/article/details/104874177
第二种方法比较清晰。
5、开启ssh服务
https://blog.csdn.net/xp_lx1/article/details/78089730