I am upgrading an old 16.04 LTS machine (yes, I know I'm stupid for waiting this long when it is EOL)
It seems to be a problem with Jenkins and/or its repositories
sudo apt-get update
gives me:
Err:23 https://pkg.jenkins.io/debian-stable binary/ Packages
server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
Fetched 12.5 MB in 39s (313 kB/s)
Reading package lists... Done
W: The repository 'http://pkg.jenkins.io/debian-stable binary/ Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details
.
E: Failed to stat /var/lib/apt/lists/partial/download.docker.com_linux_ubuntu_dists_xenial_InRelease - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
E: Failed to stat /var/lib/apt/lists/partial/download.docker.com_linux_ubuntu_dists_xenial_stable_binary-amd64_Packages - pkgAcqTransactionItem::TransactionState-stat (2: No such file or directory)
W: Duplicate sources.list entry http://download.docker.com/linux/ubuntu xenial Release
I've tried the following plus other things I don't remember:
sudo apt-get install --reinstall ca-certificates
sudo apt-get clean
sudo apt-mark hold jenkins
editing the sources list and commenting out jenkins/docker stuff
sudo apt-get upgrade -y
sudo dpkg --configure -a
Deleting stuff out of /var/lib/apt/lists/partial/
I've been trying for days.