[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

APT via https



Hello.

I have problems with using APT via https:

my environment:

1. APT server: nginx 1.0.9, ssl, self-signed certs
2. APT version: 0.8.10.3

I successfully configured server and client, and i have no issues while use "http", but when i switch to "https", then "apt-get update" cannot updates cache:
# apt-get update

Get:1 https://172.16.0.252 base-unstable/4.0 Release.gpg [185 B]
Get:2 https://172.16.0.252 kernel-unstable/4.0 Release.gpg [185 B]
Get:3 https://172.16.0.252 nza-unstable/4.0 Release.gpg [185 B]
Get:4 https://172.16.0.252 plugins-unstable/4.0 Release.gpg [185 B]
Get:5 https://172.16.0.252 base-unstable/4.0 Release [6878 B]
Get:6 https://172.16.0.252 kernel-unstable/4.0 Release [6840 B]
Get:7 https://172.16.0.252 nza-unstable/4.0 Release [6827 B]
Err https://172.16.0.252 base-unstable/4.0 Release  

Get:8 https://172.16.0.252 plugins-unstable/4.0 Release [6870 B]

Err https://172.16.0.252 kernel-unstable/4.0 Release  
Err https://172.16.0.252 nza-unstable/4.0 Release  
Err https://172.16.0.252 plugins-unstable/4.0 Release
  
Reading package lists... Done
W: Bizarre Error - File size is not what the server reported 0 185
W: Bizarre Error - File size is not what the server reported 0 185
W: Bizarre Error - File size is not what the server reported 0 185
W: Bizarre Error - File size is not what the server reported 0 185
W: Bizarre Error - File size is not what the server reported 0 6878
W: Bizarre Error - File size is not what the server reported 0 6840
W: Bizarre Error - File size is not what the server reported 0 6827
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://172.16.0.252 base-unstable/4.0 Release: The following signatures were invalid: NODATA 2
W: Bizarre Error - File size is not what the server reported 0 6870
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://172.16.0.252 kernel-unstable/4.0 Release: The following signatures were invalid: NODATA 2
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://172.16.0.252 nza-unstable/4.0 Release: The following signatures were invalid: NODATA 2
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://172.16.0.252 plugins-unstable/4.0 Release: The following signatures were invalid: NODATA 2
W: Failed to fetch https://172.16.0.252/apt/nza4.x-rolling/dists/base-unstable/4.0/Release
W: Failed to fetch https://172.16.0.252/apt/nza4.x-rolling/dists/kernel-unstable/4.0/Release
W: Failed to fetch https://172.16.0.252/apt/nza4.x-rolling/dists/nza-unstable/4.0/Release
W: Failed to fetch https://172.16.0.252/apt/nza4.x-rolling/dists/plugins-unstable/4.0/Release
W: Some index files failed to download, they have been ignored, or old ones used instead.


If i clean my local cache (rm /var/lib/apt/lists/172.16.0.252*) then everything nice, but next 'apt-get update' and i again have the problem.

Could you help me understand what i do incorrect?

Thanks.

Reply to: