huangcongqing / ros Goto Github PK
View Code? Open in Web Editor NEW🔥ROS(c++)机器人操作系统 学习(写于2020年夏)
License: MIT License
🔥ROS(c++)机器人操作系统 学习(写于2020年夏)
License: MIT License
ubuntu apt-get 错误 Temporary failure resolving ‘us.archive.ubuntu.com’ 解决
原因是dns没有配置,解决办法 加入dns服务器地址:
vi /etc/resolv.conf
添加
nameserver 202.96.134.133
nameserver 8.8.8.8
如果提示只读,用sudo运行,即:
sudo vi /etc/resolv.conf
换了阿里云和163云不能解决问题。
当我在catkin_ws目录下用catkin_make 编译的时候出现一下错误:
The specified base path "/home/username/catkin_ws" contains a package but "catkin_make" must be invoked in the root of workspace
我的错误原因是之前在编译某个包的时候,把生成的CMakeLists.txt和package.xml文件放到这catkin_ws目录下了,应该删除这两个文件
,catkin_ws目录下只需要三个文件夹就可以了build, devel, src
修改代码,执行catkin_make
命令后,结果没任何变化
没有任何报错提示,就是没有编译功能包,心态有点炸啊啊
Found a swap file by the name "/run/resolvconf/.resolv.conf.swp"
使用ls命令查看该目录下,却发现没有这个文件,后来使用ls -a命令查看才知道Test.java.swp是一个隐藏文件。
注:以.开头的文件就是隐藏文件
当我把该隐藏文件删除后再次打开就没有上面的警告了。
hcq@ubuntu:/run/resolvconf$ ls -a
. .. enable-updates interface resolv.conf .resolv.conf.swp
hcq@ubuntu:/run/resolvconf$ rm .resolv.conf.swp
rm: remove write-protected regular file '.resolv.conf.swp'? Y
rm: cannot remove '.resolv.conf.swp': Permission denied
hcq@ubuntu:/run/resolvconf$ ls -a
. .. enable-updates interface resolv.conf .resolv.conf.swp
hcq@ubuntu:/run/resolvconf$ sudo rm .resolv.conf.swp
在更换软件源时遇到了如下问题:
sudo apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
表明当前有某个进程正在apt-get,然而我并没有使用任何命令,于是需要kill掉进程。
解决方法是:
sudo rm /var/lib/apt/lists/lock
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.