ubuntu显示的是17.04
但是竟然用17.10的源就好啦,去年有的问题,一年没怎么玩这个机子,突发奇想试试,就好了。。。。。。
首先错误如下:
忽略:76 http://mirrors.aliyun.com/ubuntu zesty-updates/multiverse all Packages
正在读取软件包列表... 完成
W: 仓库 “http://security.ubuntu.com/ubuntu zesty-security Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 仓库 “http://mirrors.aliyun.com/ubuntu zesty Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 仓库 “http://mirrors.aliyun.com/ubuntu zesty-security Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
W: 仓库 “http://mirrors.aliyun.com/ubuntu zesty-updates Release” 没有 Release 文件。
N: 无法认证来自该源的数据,所以使用它会带来潜在风险。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
E: 无法下载 http://security.ubuntu.com/ubuntu/dists/zesty-security/universe/binary-i386/Packages 404 Not Found [IP: 91.189.88.149 80]
E: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/zesty/universe/source/Sources 404 Not Found [IP: 116.211.153.231 80]
E: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/zesty-security/multiverse/source/Sources 404 Not Found [IP: 116.211.153.231 80]
E: 无法下载 http://mirrors.aliyun.com/ubuntu/dists/zesty-updates/universe/source/Sources 404 Not Found [IP: 116.211.153.231 80]
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
我们没有key???什么鬼。如果有key导入就好。
1.那我想DNS是不是对的,现在来看,我能ping通也能打开网址应该可以,没问题。
2.我也让软件更新选择最佳源,结果不是链接网络失败就是其他国家的小服务器,更新也不会成功
3.那是不是版本问题?我看了一下17.04没问题,可是眼见不一定为实,想了想换着试试,竟然可以用。。。。
感觉中了奖,如果你想换,一定要备份再做!!!我之前换过一次名字改错了,搞了一天= =
修改如下:
sudo vim sources.list
#ty Zapus_ - Release amd64 (20170412)]/ zesty main multiverse restricted universe
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
## Major bug fix updates produced after the final release of the
## distribution.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful-updates main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful-backports main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful-security main restricted universe multiverse
deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ artful-security main restricted universe multiverse
###以前的
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty main restricted universe multiverse
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-updates main restricted universe multiverse
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-backports main restricted universe multiverse
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ zesty-security main restricted universe multiverse
# deb http://archive.canonical.com/ubuntu zesty partner
# deb-src http://archive.canonical.com/ubuntu zesty partner
# deb http://mirrors.aliyun.com/ubuntu/ zesty main universe restricted multiverse
# deb-src http://mirrors.aliyun.com/ubuntu/ zesty main universe restricted multiverse #Added by software-properties
# deb http://security.ubuntu.com/ubuntu/ zesty-security universe multiverse restricted main
# deb-src http://mirrors.aliyun.com/ubuntu/ zesty-security universe multiverse restricted main #Added by software-properties
# deb http://mirrors.aliyun.com/ubuntu/ zesty-updates universe multiverse restricted main
# deb-src http://mirrors.aliyun.com/ubuntu/ zesty-updates universe multiverse restricted main #Added by software-properties
#deb http://archive.ubuntu.com/ubuntu zesty main universe restricted multiverse
#deb-src http://archive.ubuntu.com/ubuntu zesty main universe restricted multiverse #Added by software-properties
竟然这样,不得不说猝不及防
内核?如下
uname -a
Linux E60-Server 4.10.0-42-generic #46-Ubuntu SMP Mon Dec 4 14:38:01 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
后记:ubuntu还是不要upgrade比较好,免得upgrade失败后问题一堆。对于大部分来说到这就能用了(建议升到18.04,毕竟17不再支持了),可是我是用来装ROS的。
首先,我先试了kinetic,报错。然后lunar,报错。难道我这个不支持ROS想想真是白开心一场,如下报错,一度绝望
我去这又是zesty ???好吧手工导入,换下ROS Melodic安装(支持ubuntu17.10版本)
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu artful main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-get install ros-melodic-desktop-full
自此ubuntu能够安装ROS了,不过ROS最新版本好像是5月份才发稳定版。
然后安装KinetcV1驱动
source 一下setup.bash,然后
sudo apt-get install ros-kinetic-rgbd-launch
可以解决如下错误
roslaunch freenect_launch freenect.launch
rosrun rqt_image_view rqt_image_view
rosrun rviz rviz
depth/image_raw就是深度图了
参考博客:
ubuntu17.04版本问题https://www.jianshu.com/p/59e52b28e3a4
ROS Melodic 安装https://blog.csdn.net/zhangrelay/article/details/80241758
KinetcV1 安装 https://blog.csdn.net/SimileciWH/article/details/81332199
ubuntu官网支持https://www.ubuntu.com/about/release-cycle
前两天用了下激光雷达,然后官方操作是错误的,其实roslaunch的是时候已经包括了发布的名字。感觉激光雷达的code好几家都差不多。。