軟件源sources更新出錯,能上網,能ping通&&ROS Melodic安裝&&KinetcV1

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好幾家都差不多。。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章