With the release of 5.1.1 today, I found that the 5.0.2 packages are no longer available in the apt repositories. This has broken my builds because I'm pinning versions and it now fails to pull the version I have specified.
root@infra-es-client-dd45f945:~# tail -1 /etc/apt/sources.list deb https://artifacts.elastic.co/packages/5.x/apt stable main root@infra-es-client-dd45f945:~# apt install elasticsearch=5.0.2 Reading package lists... Done Building dependency tree Reading state information... Done E: Version '5.0.2' for 'elasticsearch' was not found
Attempting to install the new version works fine:
root@infra-es-client-dd45f945:~# apt install elasticsearch=5.1.1 Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: elasticsearch 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 0 B/33.2 MB of archives. After this operation, 36.9 MB of additional disk space will be used. Selecting previously unselected package elasticsearch. (Reading database ... 84103 files and directories currently installed.) Preparing to unpack .../elasticsearch_5.1.1_all.deb ... Unpacking elasticsearch (5.1.1) ... Processing triggers for systemd (229-4ubuntu12) ... Processing triggers for ureadahead (0.100.0-19) ... Setting up elasticsearch (5.1.1) ...
Is this expected behavior? It seems excessive to remove older versions from the repos the day a new version is released.