Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-get install error #87

Closed
Tiryoh opened this issue May 7, 2023 · 3 comments
Closed

apt-get install error #87

Tiryoh opened this issue May 7, 2023 · 3 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@Tiryoh
Copy link
Owner

Tiryoh commented May 7, 2023

------
 > [5/7] RUN apt-get update -q &&     apt-get install -y curl gnupg2 lsb-release &&     curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg &&     echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null &&     apt-get update -q &&     apt-get install -y ros-humble-desktop     python3-argcomplete     python3-colcon-common-extensions     python3-rosdep python3-vcstool &&     rosdep init &&     rm -rf /var/lib/apt/lists/*:
#8 91.96 Get:157 https://ftp.udx.icscoe.jp/Linux/ubuntu jammy/universe amd64 libboost-atomic-dev amd64 1.74.0.3ubuntu7 [3544 B]
#8 91.96 Get:541 https://ftp.udx.icscoe.jp/Linux/ubuntu jammy/universe amd64 libspdlog-dev amd64 1:1.9.2+ds-0.2 [181 kB]
#8 92.01 Get:426 https://ftp.udx.icscoe.jp/Linux/ubuntu jammy/universe amd64 libopencv-flann-dev amd64 4.5.4+dfsg-9ubuntu4 [210 kB]
#8 92.06 Get:496 https://ftp.udx.icscoe.jp/Linux/ubuntu jammy/universe amd64 libpcl-recognition1.12 amd64 1.12.1+dfsg-3build1 [704 kB]
#8 92.88 Get:139 http://ftp.tsukuba.wide.ad.jp/Linux/ubuntu jammy/main amd64 libasound2-dev amd64 1.2.6.1-1ubuntu1 [110 kB]
Fetched 701 MB in 1min 14s (9420 kB/s)
#8 92.99 : Failed to fetch https://jp.mirror.coganng.com/ubuntu/pool/universe/b/boost-defaults/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb  rename failed, No such file or directory (/var/cache/apt/archives/partial/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb -> /var/cache/apt/archives/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb).
#8 92.99 E: Failed to fetch https://jp.mirror.coganng.com/ubuntu/pool/universe/n/nose2/python3-nose2_0.9.2-1_all.deb  rename failed, No such file or directory (/var/cache/apt/archives/partial/python3-nose2_0.9.2-1_all.deb -> /var/cache/apt/archives/python3-nose2_0.9.2-1_all.deb).
#8 92.99 E: Failed to fetch https://jp.mirror.coganng.com/ubuntu-ports/pool/universe/p/python-mccabe/python3-mccabe_0.6.1-3_all.deb  rename failed, No such file or directory (/var/cache/apt/archives/partial/python3-mccabe_0.6.1-3_all.deb -> /var/cache/apt/archives/python3-mccabe_0.6.1-3_all.deb).
#8 92.99 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
ERROR: failed to solve: executor failed running [/bin/bash -c apt-get update -q &&     apt-get install -y curl gnupg2 lsb-release &&     curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg &&     echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null &&     apt-get update -q &&     apt-get install -y ros-${ROS_DISTRO}-${INSTALL_PACKAGE}     python3-argcomplete     python3-colcon-common-extensions     python3-rosdep python3-vcstool &&     rosdep init &&     rm -rf /var/lib/apt/lists/*]: exit code: 100
Error: Process completed with exit code 1.

full log: 4_build-and-deploy (humble, amd64).txt

@Tiryoh
Copy link
Owner Author

Tiryoh commented May 7, 2023

mirror server error? HTTP/1.1 304 Not Modified

$ curl -v https://jp.mirror.coganng.com/ubuntu/pool/universe/b/boost-defaults/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb
*   Trying 168.138.43.189:443...
* TCP_NODELAY set
* Connected to jp.mirror.coganng.com (168.138.43.189) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=jp.mirror.coganng.com
*  start date: Mar 10 00:06:45 2023 GMT
*  expire date: Jun  8 00:06:44 2023 GMT
*  subjectAltName: host "jp.mirror.coganng.com" matched cert's "jp.mirror.coganng.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> GET /ubuntu/pool/universe/b/boost-defaults/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb HTTP/1.1
> Host: jp.mirror.coganng.com
> User-Agent: curl/7.68.0
> Accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Mark bundle as not supporting multiuse
< HTTP/1.1 304 Not Modified
< Date: Sun, 07 May 2023 15:09:58 GMT
< Server: nginx
< ETag: "df4-5daf4f9b88525"
< 
* Connection #0 to host jp.mirror.coganng.com left intact
$ curl -v https://mirror.coganng.com/ubuntu/pool/universe/b/boost-defaults/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb
*   Trying 116.15.69.197:443...
* TCP_NODELAY set
* Connected to mirror.coganng.com (116.15.69.197) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=mirror.coganng.com
*  start date: Apr  9 20:13:38 2023 GMT
*  expire date: Jul  8 20:13:37 2023 GMT
*  subjectAltName: host "mirror.coganng.com" matched cert's "mirror.coganng.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x563970053320)
> GET /ubuntu/pool/universe/b/boost-defaults/libboost-locale-dev_1.74.0.3ubuntu7_amd64.deb HTTP/2
> Host: mirror.coganng.com
> user-agent: curl/7.68.0
> accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 128)!
< HTTP/2 200 
< server: nginx
< date: Sun, 07 May 2023 16:06:32 GMT
< content-type: application/vnd.debian.binary-package
< content-length: 3572
< last-modified: Thu, 24 Mar 2022 11:16:20 GMT
< etag: "df4-5daf4f9b88525"
< accept-ranges: bytes
< 
Warning: Binary output can mess up your terminal. Use "--output -" to tell 
Warning: curl to output it to your terminal anyway, or consider "--output 
Warning: <FILE>" to save to a file.
* Failed writing body (0 != 1245)
* stopped the pause stream!
* Connection #0 to host mirror.coganng.com left intact

@Tiryoh
Copy link
Owner Author

Tiryoh commented May 7, 2023

The problem was resolved when I stopped using the mirror server

sed -i.bak -r 's!(deb|deb-src) \S+!\1 http://archive.ubuntu.com/ubuntu/!' /etc/apt/sources.list

reference: https://qiita.com/m-tmatma/items/9dc51532d105504dbea3

@Tiryoh
Copy link
Owner Author

Tiryoh commented May 20, 2023

@Tiryoh Tiryoh closed this as completed May 20, 2023
@Tiryoh Tiryoh added the Type: Bug Bug or Bug fixes label Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant