首页 > 其他分享 >如何在/etc/apt/sources.list添加新内容

如何在/etc/apt/sources.list添加新内容

时间:2022-12-15 10:32:51浏览次数:49  
标签:precise etc restricted universe list sources ubuntu deb multiverse


这个提示是因为你非正常中断了一个apt-get的更新进程,所以造成更新过程中锁住的文件没有解锁。 解决这个问题,方法如下: sudo rm /var/lib/apt/lists/lock 1.crtl+alt+t打开终端输入 sudo gedit /etc/apt/sources.list 2.将下面的代码粘贴进去(ardupilot#电子科技大学 ) 3.通知ubuntu启用新的更新源 sudo apt-get update


git clone git://github.com/ArduPilot/ardupilot.git
cd ardupilot
git submodule update --init --recursive
sudo apt-get install python-matplotlib python-serial python-wxgtk2.8 python-wxtools python-lxml
sudo apt-get install python-scipy python-opencv ccache gawk git python-pip python-pexpect
sudo pip install future pymavlink MAVProxy (该步如果遇到超时错误并且重新下载仍无法解决,推荐手机热点解决,速度超快!)
export PATH=$PATH:$HOME/ardupilot/Tools/autotest
export PATH=/usr/lib/ccache:$PATH


. ~/.bashrc


cd ardupilot/ArduCopter


sim_vehicle.py -w (运行之后ctrl+c退出程序)


sim_vehicle.py --console --map --aircraft test



#电子科技大学 



deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse 



deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse 



deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 



deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 



deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 



deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse 



deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse 



deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 



deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 



deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 

 


#台湾源 


deb http://tw.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse 


deb-src http://tw.archive.ubuntu.com/ubuntu/ precise main universe restricted multiverse 


deb http://tw.archive.ubuntu.com/ubuntu/ precise-security universe main multiverse restricted 


deb-src http://tw.archive.ubuntu.com/ubuntu/ precise-security universe main multiverse restricted 


deb http://tw.archive.ubuntu.com/ubuntu/ precise-updates universe main multiverse restricted 


deb-src http://tw.archive.ubuntu.com/ubuntu/ precise-updates universe main multiverse restricted 


 


#网易 Ubuntu 11.10 源(速度很快) 


deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse 


deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse 


deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted 


deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted 


deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted 


deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted 


deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted 


deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted 


deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted 


deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted 


 


#骨头源,骨头源是bones7456架设的一个Ubuntu源 ,提供ubuntu,deepin 


deb http://ubuntu.srt.cn/ubuntu/ precise main universe restricted multiverse 


deb-src http://ubuntu.srt.cn/ubuntu/ precise main universe restricted multiverse 


deb http://ubuntu.srt.cn/ubuntu/ precise-security universe main multiverse restricted 


deb-src http://ubuntu.srt.cn/ubuntu/ precise-security universe main multiverse restricted 


deb http://ubuntu.srt.cn/ubuntu/ precise-updates universe main multiverse restricted 


deb http://ubuntu.srt.cn/ubuntu/ precise-proposed universe main multiverse restricted 


deb-src http://ubuntu.srt.cn/ubuntu/ precise-proposed universe main multiverse restricted 


deb http://ubuntu.srt.cn/ubuntu/ precise-backports universe main multiverse restricted 


deb-src http://ubuntu.srt.cn/ubuntu/ precise-backports universe main multiverse restricted 


deb-src http://ubuntu.srt.cn/ubuntu/ precise-updates universe main multiverse restricted 


 


#mirror.lupaworld.com的源,速度很快 


deb http://mirror.lupaworld.com/ubuntu/archive/ precise main restricted universe multiverse 


deb http://mirror.lupaworld.com/ubuntu/archive/ precise-security main restricted universe multiverse 


deb http://mirror.lupaworld.com/ubuntu/archive/ precise-updates main restricted universe multiverse 


deb http://mirror.lupaworld.com/ubuntu/archive/ precise-backports main restricted universe multiverse 


deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ precise main restricted universe multiverse 



#ubuntu.cn99.com源(推荐): 


deb http://ubuntu.cn99.com/ubuntu/ precise main restricted universe multiverse 


deb http://ubuntu.cn99.com/ubuntu/ precise-updates main restricted universe multiverse 


deb http://ubuntu.cn99.com/ubuntu/ precise-security main restricted universe multiverse 


deb http://ubuntu.cn99.com/ubuntu/ precise-backports main restricted universe multiverse 


deb http://ubuntu.cn99.com/ubuntu-cn/ precise main restricted universe multiverse 


 


#中国科技大学 


deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse 


deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse 


deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 


deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 


deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 


deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse 


deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse 


deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse 


deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse 


deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse 


 


#北京理工大学 


deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe 


deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 


deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 


deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 


deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe 


deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe 


deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 


deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 


deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 


deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe 



#兰州大学 


deb ftp://mirror.lzu.edu.cn/ubuntu/ precise main multiverse restricted universe 


deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 


deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 


deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 


deb ftp://mirror.lzu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe 


deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ precise main multiverse restricted universe 


 


#上海交通大学 


deb http://ftp.sjtu.edu.cn/ubuntu/ precise main multiverse restricted universe 


deb http://ftp.sjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 


deb http://ftp.sjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 


deb http://ftp.sjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 


deb http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe   www.2cto.com  


deb http://ftp.sjtu.edu.cn/ubuntu-cn/ precise main multiverse restricted universe 


deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise main multiverse restricted universe 


deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe 


deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe 


deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe 


deb-src http://ftp.sjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe 




标签:precise,etc,restricted,universe,list,sources,ubuntu,deb,multiverse
From: https://blog.51cto.com/u_11444530/5938863

相关文章

  • <四>vector、deque、list对比
    vector和deque之间的区别?vector:底层动态数组,内存连续,二倍方式扩容vectorvec;默认是没有开辟空间的,0->1->2->4->8->16可以用reserve(20)只开辟空间,没有放置元素de......
  • WPF实现ListBox滚动条自动定位至最底部
    摘要在有些场景下为了提升用户体验可能需要自动定位数据至最新的地方,比如实时运行日志、表格最新添加的数据记录等等,这种其实都可以使用WPF中的Behavior(行为)来进行实现,当......
  • LeetCode HOT 100:全排列
    题目:46.全排列题目描述:给你一个没有重复元素的数组,返回其所有可能的全排列。全排列是什么呢?举个简单的例子,数组[1,2,3],其中一个排列为[2,1,3],该数组所有的全排列为[......
  • [LeetCode]003-无重复字符的最长子串
    >>>传送门题目给定一个字符串s,请你找出其中不含有重复字符的最长子串的长度。示例示例1输入:s="abcabcbb"输出:3解释:因为无重复字符的最长子串是"abc",......
  • <三>deque容器和list容器
    deque:双端队列容器(队头队尾都可入,出)底层数据结构情况动态开辟的二维数组,一维数组从2开始,以2倍方式进行扩容,每次扩容后,原来第二维数组从新的第一维数组的下标old......
  • ListView 加载图片实现三级缓存效果
    importjava.io.FileOutputStream;importjava.io.InputStream;importjava.net.HttpURLConnection;importjava.net.URL;importjava.util.HashMap;importjava.util.Map;i......
  • 关于对ServletContext对象的应用详解
    一.预准备工程1.1ServletContext的概念ServletContext是用于存储信息的全局空间。它从服务器开始就存在,只有在服务器关闭后才释放。ServletContext和Cookie、Session对......
  • LeetCode80. 删除排序数组中的重复项 II
    给定一个排序数组,你需要在​​原地​​删除重复出现的元素,使得每个元素最多出现两次,返回移除后数组的新长度。不要使用额外的数组空间,你必须在​​原地​​修改输入数组并在......
  • @RequestBody中传递json里的对象,对象包含list属性,对应body里的格式
    以下就是对应格式,直接复制进接口文档相关工具即可{"userId":"88","openCostCenterDTO":[{"name":"大斯温例果取向","co......
  • LeetCode-Java-872. Leaf-Similar Trees
    题目Consideralltheleavesofabinarytree.Fromlefttorightorder,thevaluesofthoseleavesformaleafvaluesequence.假装有图Forexample,inthegiven......