jsk-ros-pkg / jsk_travis

11 stars 23 forks source link

Add apt-key update before apt-get update #388

Closed pazeshun closed 4 years ago

pazeshun commented 4 years ago

To fix https://github.com/jsk-ros-pkg/jsk_travis/pull/387#issuecomment-549653272 and https://github.com/start-jsk/rtmros_common/pull/1077#issuecomment-549629846

pazeshun commented 4 years ago

This PR cannot fix https://github.com/jsk-ros-pkg/jsk_travis/pull/387#issuecomment-549653272: ROS_DISTRO=indigo:

+ sudo apt-key update
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <cdimage@ubuntu.com>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@ubuntu.com>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@ubuntu.com>" not changed
gpg: Total number processed: 4
gpg:              unchanged: 4
+ sudo apt-get update -q
Ign https://esm.ubuntu.com trusty-infra-security InRelease
Ign https://esm.ubuntu.com trusty-infra-updates InRelease
Ign https://esm.ubuntu.com trusty-infra-security Release.gpg
Ign https://esm.ubuntu.com trusty-infra-updates Release.gpg
Ign https://esm.ubuntu.com trusty-infra-security Release
Ign https://esm.ubuntu.com trusty-infra-updates Release
Err https://esm.ubuntu.com trusty-infra-security/main amd64 Packages
  Received HTTP code 403 from proxy after CONNECT
Err https://esm.ubuntu.com trusty-infra-updates/main amd64 Packages
  Received HTTP code 403 from proxy after CONNECT
Hit http://security.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty InRelease
Get:1 http://packages.ros.org trusty InRelease [4669 B]
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Get:2 http://packages.ros.org trusty/main amd64 Packages [624 kB]
Hit http://archive.ubuntu.com trusty-backports InRelease
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/universe amd64 Packages
Hit http://archive.ubuntu.com trusty/multiverse amd64 Packages
Fetched 628 kB in 3s (157 kB/s)
W: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/trusty-infra-security/main/binary-amd64/Packages  Received HTTP code 403 from proxy after CONNECT

W: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/trusty-infra-updates/main/binary-amd64/Packages  Received HTTP code 403 from proxy after CONNECT

E: Some index files failed to download. They have been ignored, or old ones used instead.
Ignore error of apt-get update
-E: There are problems and -y was used without --force-yes
ERROR: the following rosdeps failed to install
  apt: command [sudo -H apt-get install -y ros-indigo-gazebo-plugins] failed
kit-dev
  libpango1.0-dev libpangox-1.0-0 libpangoxft-1.0-0 libpathplan4
  libpixman-1-dev libplayerc++3.0 libplayerc3.0 libplayercommon3.0
  libplayercore3.0 libplayerdrivers3.0 libplayerinterface3.0 libplayerjpeg3.0
  libplayertcp3.0 libplayerwkb3.0 libpmap3.0 libprotobuf-dev libprotobuf-lite8
  libprotobuf8 libprotoc8 libpulse0 libraw1394-11 libraw1394-dev
  libraw1394-tools libraw9 libreadline-dev libreadline6-dev librtmp-dev
  libsdformat-dev libsdformat1 libsdl1.2debian libsilly libsndfile1
  libstatgrab9 libsys-hostname-long-perl libtar0 libtasn1-6-dev libtbb-dev
  libtbb2 libtinfo-dev libtool libunistring0 liburdfdom-dev
  liburdfdom-headers-dev liburdfdom-model-state0.2 liburdfdom-model0.2
  liburdfdom-sensor0.2 liburdfdom-world0.2 libusb-1.0-0 libv4l-0
  libv4lconvert0 libxaw7-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev
  libxerces-c3.1 libxi-dev libxinerama-dev libxml2-utils libxmu-dev
  libxmu-headers libxpm-dev libxrandr-dev libyaml-cpp-dev libyaml-cpp0.5
  libzzip-0-13 libzzip-dev opencv-data po-debconf python-opencv robot-player
  ros-indigo-angles ros-indigo-camera-calibration-parsers
  ros-indigo-camera-info-manager ros-indigo-cv-bridge
  ros-indigo-diagnostic-updater ros-indigo-driver-base ros-indigo-gazebo-msgs
  ros-indigo-gazebo-plugins ros-indigo-gazebo-ros ros-indigo-image-transport
  ros-indigo-polled-camera ros-indigo-self-test ros-indigo-tf ros-indigo-tf2
  ros-indigo-tf2-msgs ros-indigo-tf2-py ros-indigo-tf2-ros ros-indigo-urdf
  ros-indigo-urdf-parser-plugin ttf-dejavu-core x11proto-composite-dev
  x11proto-randr-dev x11proto-xinerama-dev
The following packages will be upgraded:
  curl krb5-multidev libcurl3 libglib2.0-0 libgssapi-krb5-2 libgssrpc4
  libk5crypto3 libkadm5clnt-mit9 libkadm5srv-mit9 libkrb5-3 libkrb5support0
11 upgraded, 225 newly installed, 0 to remove and 73 not upgraded.
Need to get 92.6 MB of archives.
After this operation, 307 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
  krb5-multidev libk5crypto3 libgssapi-krb5-2 libkrb5-3 libkrb5support0
  libgssrpc4 libkadm5srv-mit9 libkadm5clnt-mit9 libglib2.0-0 curl libcurl3
  libsdl1.2debian libfreeimage3 libglib2.0-bin libglib2.0-dev libfreeimage-dev
  libkrb5-dev libcurl4-openssl-dev
t-get install -y python-mock]
command return code [sudo -H apt-get install -y python-mock]: 0
executing command [sudo -H apt-get install -y ros-indigo-gazebo-plugins]
command return code [sudo -H apt-get install -y ros-indigo-gazebo-plugins]: 100
+ EXIT_STATUS=1
pazeshun commented 4 years ago

The following is root problem (?):

+ echo 'Acquire::http {proxy "http://172.17.0.1:3142"; };'
+ sudo tee /etc/apt/apt.conf.d/02proxy.conf
Acquire::http {proxy "http://172.17.0.1:3142"; };
+ sudo apt-get update -qq
W: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/trusty-infra-security/main/binary-amd64/Packages  Received HTTP code 403 from proxy after CONNECT

W: Failed to fetch https://esm.ubuntu.com/ubuntu/dists/trusty-infra-updates/main/binary-amd64/Packages  Received HTTP code 403 from proxy after CONNECT

E: Some index files failed to download. They have been ignored, or old ones used instead.
+ echo Ignore error of apt-get update
Ignore error of apt-get update