I am trying to install specific package versions to maintain my production server in sync with my staging system. When I specify the version I get this:
root@ip-172-19-69-40:~/installs# apt install libc6=2.31-0ubuntu9.15
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '2.31-0ubuntu9.15' for 'libc6' was not found
There is a similar question here: Unable to install specific package version with apt-get Which states:
"Older Packages are pruned from ubuntu repo's and not kept around."
Which would make sense, except I installed this version about 4 weeks ago on my staging server. I don't understand how this version was considered old enough to purge as of 4 weeks ago.
Can someone help me understand how I would go about getting that version installed?
Beyond that some additional info:
This is my staging system:
root@ip-172-20-57-64:~# apt policy libc6
libc6:
Installed: 2.31-0ubuntu9.15
Candidate: 2.31-0ubuntu9.16
Version table:
2.31-0ubuntu9.16 500
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
*** 2.31-0ubuntu9.15 100
100 /var/lib/dpkg/status
2.31-0ubuntu9 500
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu focal/main amd64 Packages
And here is a production-clone:
root@ip-172-19-69-40:~/installs# apt policy libc6
libc6:
Installed: 2.31-0ubuntu9.7
Candidate: 2.31-0ubuntu9.16
Version table:
2.31-0ubuntu9.16 500
500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
*** 2.31-0ubuntu9.7 100
100 /var/lib/dpkg/status
2.31-0ubuntu9 500
500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
I installed 2.31-0ubuntu9.15 around 4 weeks ago - it' gone already???