更新ubuntu 环境报错

 wget --no-check-certificate -O Configuring_ubuntu.sh https://weidongshan.coding.net/p/DevelopmentEnvConf/d/DevelopmentEnvConf/git/raw/master/Configuring_ubuntu.sh && sudo chmod +x Configuring_ubuntu.sh && sudo ./Configuring_ubuntu.sh

后 选 2   2. Configuring for Linux development;

报错:

nstall_software_list: ssh git vim tftp nfs samba.

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

==> Executing: 'apt-get install curl mtd-utils gcc make git vim python net-tools openssh-server python-dev build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext gfortran libssl-dev libpcre3-dev xlibmesa-glu-dev libglew1.5-dev libftgl-dev libmysqlclient-dev libfftw3-dev libcfitsio-dev graphviz-dev libavahi-compat-libdnssd-dev libldap2-dev libxml2-dev p7zip-full bzr libkrb5-dev libgsl0-dev u-boot-tools lzop -y'.

E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)

E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?




请先 登录 后评论

2 个回答

百问网_赵老师
擅长:嵌入式开发

重启ubuntu,再尝试输入命令。

请先 登录 后评论
steveszhang

Fetched 73.5 MB in 46min 53s (26.1 kB/s)

E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/ftgl/libftgl2_2.1.3~rc5-4+nmu1.2_amd64.deb  Connection failed [IP: 91.189.91.38 80]

E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/m/mesa/mesa-common-dev_20.0.8-0ubuntu1~18.04.1_amd64.deb  Connection failed [IP: 91.189.91.38 80]

E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/f/ftgl/libftgl-dev_2.1.3~rc5-4+nmu1.2_amd64.deb  Connection failed [IP: 91.189.91.38 80]

E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/main/g/graphite2/libgraphite2-dev_1.3.11-2_amd64.deb  Connection failed [IP: 91.189.91.38 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

后面可以下载很多了,只是最后有些不能同步下来了,请问是否有影响;
这些命令(wget.....) 的作用是安装哪些配置,缺少一些文件对接下的调式是否有影响?具体怎么排除;



2021-12-30 22:09:54 (112 KB/s) - ‘mkimage.stm32’ saved [255064/255064]

===================================================
==  Configuring for Linux development complete!  ==
===================================================
TFTP  PATH: /home/book/tftpboot
NFS   PATH: /home/book/nfs_rootfs
SAMBA PATH: /home/book/
 
再次重启 ubuntu 后,重新输入命令后更新好了,这个关键在重启!
请先 登录 后评论