Closed Tiryoh closed 1 year ago
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
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
full log: 4_build-and-deploy (humble, amd64).txt