Robotics StackExchange | Archived questions

Cant not install ROS on Kubunto 14 02

I am trying to install ROS on Kubunto 14.02 using this script:

#!/bin/sh

echo "Installing ROS Indigo on Ubuntu 14.04 Trusty"
## This commands were taken from http://www.ros.org/wiki/hydro/Installation/Ubuntu
## This script must run using sudo

# Check if this script is being run as root
if [ `whoami` != "root" ]
then
  echo "This script must be ran as root. Use: sudo ./install_ROS.sh"
  exit 1
fi

# Add the ROS sources to apt
echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list

# Add ROS keys
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | apt-key add -

# Update the APT sources
apt-get update

# Perform full ROS installation
# In systems with low memory, installing everything simultaneously can lead to 
#problems. To prevent this, we should first install texlive, then proceed with ROS.
apt-get -y install ros-indigo-desktop-full
# Install additional ros packages
apt-get -y install ros-indigo-hector-quadrotor ros-indigo-turtlebot-simulator ros-indigo-ros-control ros-indigo-effort-controllers ros-indigo-joint-state-controller

rosdep init

When i run this script on the terminal i get this errors:

:~$ sudo sh install_ROS.sh                                           
Installing ROS Indigo on Ubuntu 14.04 Trusty
--2015-02-28 16:56:01--  https://raw.githubusercontent.com/ros/rosdistro/master/ros.key
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.31.18.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.31.18.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1162 (1,1K) [application/octet-stream]
Saving to: ‘STDOUT’

100%[====================================================================================>] 1.162       --.-K/s   in 0,002s  

2015-02-28 16:56:01 (719 KB/s) - written to stdout [1162/1162]

OK
Ign http://extras.ubuntu.com trusty InRelease
Hit http://extras.ubuntu.com trusty Release.gpg                                
Hit http://extras.ubuntu.com trusty Release                                    
Hit http://extras.ubuntu.com trusty/main Sources                               
Hit http://extras.ubuntu.com trusty/main amd64 Packages                        
Hit http://packages.ros.org trusty InRelease                                   
Hit http://extras.ubuntu.com trusty/main i386 Packages                         
Hit http://packages.ros.org trusty/main amd64 Packages                         
Hit http://packages.ros.org trusty/main i386 Packages                          
Ign http://extras.ubuntu.com trusty/main Translation-pt_PT                     
Ign http://extras.ubuntu.com trusty/main Translation-pt                        
Ign http://extras.ubuntu.com trusty/main Translation-pt_BR                     
Ign http://extras.ubuntu.com trusty/main Translation-en                        
Ign http://packages.ros.org trusty/main Translation-pt_PT                      
Ign http://packages.ros.org trusty/main Translation-pt                         
Ign http://packages.ros.org trusty/main Translation-pt_BR                      
Ign http://packages.ros.org trusty/main Translation-en                         
Ign http://security.ubuntu.com trusty-security InRelease                       
Hit http://security.ubuntu.com trusty-security Release.gpg                     
Hit http://security.ubuntu.com trusty-security Release  
Hit http://security.ubuntu.com trusty-security/main Sources                    
Hit http://security.ubuntu.com trusty-security/restricted Sources              
Hit http://security.ubuntu.com trusty-security/universe Sources                
Hit http://security.ubuntu.com trusty-security/multiverse Sources              
Hit http://security.ubuntu.com trusty-security/main amd64 Packages             
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages       
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages         
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages       
Hit http://security.ubuntu.com trusty-security/main i386 Packages              
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages        
Hit http://security.ubuntu.com trusty-security/universe i386 Packages          
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages        
Hit http://security.ubuntu.com trusty-security/main Translation-en             
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en   

Hit http://security.ubuntu.com trusty-security/restricted Translation-en    

Hit http://security.ubuntu.com trusty-security/universe Translation-en 

Err http://pt.archive.ubuntu.com trusty InRelease                              

Err http://pt.archive.ubuntu.com trusty-updates InRelease

Err http://pt.archive.ubuntu.com trusty-backports InRelease

**Err http://pt.archive.ubuntu.com trusty Release.gpg

  It was not possible to conect  pt.archive.ubuntu.com:http:

Err http://pt.archive.ubuntu.com trusty-updates Release.gpg

   It was not possible to conect pt.archive.ubuntu.com:http:

Err http://pt.archive.ubuntu.com trusty-backports Release.gpg

   It was not possible to conect  pt.archive.ubuntu.com:http:

Reading package lists.. Ready

W: Failed to obtain http://pt.archive.ubuntu.com/ubuntu/dists/trusty/InRelease  

W: Failed to obtain http://pt.archive.ubuntu.com/ubuntu/dists/trusty-updates/InRelease  

W: Failed to obtain http://pt.archive.ubuntu.com/ubuntu/dists/trusty-backports/InRelease  

W: Failed to obtain http://pt.archive.ubuntu.com/ubuntu/dists/trusty/Release.gpg 

 It was not possible to connect pt.archive.ubuntu.com:http:

W: Failed to obtain  http://pt.archive.ubuntu.com/ubuntu/dists/trusty-updates/Release.gpg  

It was not possible to connect a pt.archive.ubuntu.com:http:

W: Failed to obtain  http://pt.archive.ubuntu.com/ubuntu/dists/trusty-backports/Release.gpg 

 It was not possible to conect pt.archive.ubuntu.com:http:

W: Failed to download some index files. Were ignored or older were used instead.

Reading package lists ... Done

Building dependency tree 

Reading state information ... Done

Some packages could not be installed. This may mean that

requested an impossible situation or if you are using the

unstable distribution that some required packages have not yet been

created or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

 ros-indigo-desktop-full : Depends: ros-indigo-desktop but will not be installed

                           Depends: ros-indigo-perception but will not be installed

                           Depends: ros-indigo-simulators but will not be installed

E: Unable to correct problems, you have held packages (hold) spoiled.

Reading package lists ... Done


The build dependency tree

Reading state information ... Done


Some packages could not be installed. This may mean that

requested an impossible situation or if you are using the

unstable distribution that some required packages have not yet been

created or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

 ros-indigo-effort-controllers : Depends: libconsole-bridge0.2 but it is not installable

                                 Depends: liburdfdom-world0.2 but it is not installable

                                 Depends: ros-indigo-control-msgs but will not be installed

                                 Depends: ros-indigo-control-toolbox but will not be installed

                                 Depends: ros-indigo-controller-interface but will not be installed

                                 Depends: ros-indigo-dynamic-reconfigurebut will not be installed

                                 Depends: ros-indigo-forward-command-controller but will not be installed

                                 Depends: ros-indigo-realtime-tools but will not be installed

                                 Depends: ros-indigo-urdf but will not be installed

 ros-indigo-hector-quadrotor : Depends: ros-indigo-hector-quadrotor-controller but will not be installed

                               Depends: ros-indigo-hector-quadrotor-description but will not be installed

                               Depends: ros-indigo-hector-quadrotor-model but will not be installed

                               Depends: ros-indigo-hector-quadrotor-teleop but will not be installed

                               Depends: ros-indigo-hector-uav-msgs but will not be installed

 ros-indigo-joint-state-controller : Depends: libconsole-bridge0.2 but is notg instalable

                                     Depends: ros-indigo-controller-interface but will not be installed

                                     Depends: ros-indigo-hardware-interface but will not be installed

                                     Depends: ros-indigo-pluginlib but will not be installed

                                     Depends: ros-indigo-realtime-tools but will not be installed

                                     Depends: ros-indigo-roscpp but will not be installed

                                     Depends: ros-indigo-sensor-msgs but will not be installed

 ros-indigo-ros-control : Depends: ros-indigo-control-toolbox but will not be installed

                          Depends: ros-indigo-controller-interface but will not be installed

                          Depends: ros-indigo-controller-manager but will not be installed

                          Depends: ros-indigo-controller-manager-msgs but will not be installed

                          Depends: ros-indigo-controller-manager-tests but will not be installed

                          Depends: ros-indigo-hardware-interface but will not be installed

                          Depends: ros-indigo-joint-limits-interface but will not be installed

                          Depends: ros-indigo-realtime-tools but will not be installed

                          Depends: ros-indigo-transmission-interface but will not be installed

 ros-indigo-turtlebot-simulator : Depends: ros-indigo-turtlebot-gazebo but will not be installed

                                  Depends: ros-indigo-turtlebot-stage but will not be installed

                                  Depends: ros-indigo-turtlebot-stdr but will not be installed

E: Unable to correct problems, you have held packages (hold) Spoiled
install_ROS.sh: 30: install_ROS.sh: rosdep: not found

Does anyone knows how to fix this? Thanks

Asked by Luis_Neves_555 on 2015-02-28 12:29:23 UTC

Comments

Can you verify that the error still happens today? Maybe there was just some deb package server down??

Asked by Wolf on 2015-03-01 08:44:03 UTC

Answers