Package Update Issue


I am currently trying to install Jenkins on Ubuntu 22.04.

I followed the follwing steps via the url, Debian Jenkins Packages.

echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]
Debian Jenkins Packages binary/ | sudo tee
/etc/apt/sources.list.d/jenkins.list > /dev/null

However when we try to update Jenkins via this command:

sudo apt-get update

We will get the error “Could not handshake. Unexpected TLS packet was received. [my_proxy:port.number]”

Is there any way to resolve this TCL packet issue as we can’t seems to install Jenkins.

Thank you.

You may have your proxy setup incorrectly for apt. Please see virtualbox - apt update: Could not handshake: An unexpected TLS packet was received - Ask Ubuntu

Thanks. That was my thoughts too, what I did was to amend the ENV and added this line:


Instead of https_proxy=https://proxy.ip:port_no.

The TLS error disappeared.

However the apt install Jenkins failed with TCP 443 blocked at firewall level. Does this mean the ap install needs a direct https connection to Jenkins repository instead of a proxy connection?