jfrog-cli: Artifactory focal contrib package lists error in releases.jfrog.io
Describe the bug
Running through the standard debian installation at https://jfrog.com/download-jfrog-platform/ results in a Reading package lists... Error! by apt-get for focal (Ubuntu 20.04 - Focal Fossa).
To Reproduce
wget -qO - https://releases.jfrog.io/artifactory/api/gpg/key/public | sudo apt-key add -;
echo "deb https://releases.jfrog.io/artifactory/artifactory-pro-debs focal contrib" | sudo tee -a /etc/apt/sources.list;
sudo apt-get update && sudo apt-get install jfrog-artifactory-pro
Expected behavior Artifactory gets installed correctly and/or apt list gets updated with focal contrib list.
Observed behavior
$ apt update
Get:1 https://releases.jfrog.io/artifactory/jfrog-debs focal InRelease [2156 B]
Get:2 https://releases.jfrog.io/artifactory/jfrog-debs focal/contrib amd64 Packages [2800 B]
Fetched 4956 B in 1s (9559 B/s)
Reading package lists... Error!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/releases.jfrog.io_artifactory_jfrog-debs_dists_focal_contrib_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.
Versions
- JFrog CLI version: N/A
- JFrog CLI operating system: Ubuntu 20.04 Focal
- Artifactory Version: N/A
- DISTRIB_ID=Ubuntu
- DISTRIB_RELEASE=20.04
- DISTRIB_CODENAME=focal
- DISTRIB_DESCRIPTION=“Ubuntu 20.04.2 LTS”
- NAME=“Ubuntu”
- VERSION=“20.04.2 LTS (Focal Fossa)”
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 53 (5 by maintainers)
Hi All, We have upgraded Artifactory with the version containing the fix. I was able to install Artifactory from artifactory-debs repository. The entire issue is resolved now and shouldn’t re-appear again.
@mnemocron https://jfrog.bintray.com is still functioning and maintained, as this redirects to https://releases.jfrog.io/artifactory so nothing to worry about there. I reindexed the malfunctioned repository and now it works, simply doing
apt-get updateshould replace the corrupted file exists locally on your machine with the fixed one.@matankatz you know the instructions still specify to use
xenial… a distribution that has been End of Life for a year, right? https://www.jfrog.com/confluence/display/CLI/JFrog+CLI#JFrogCLI-DownloadandinstallationAnd same for ubuntu bionic I guess
@matankatz Could you als reindex the https://jfrog.bintray.com/artifactory-debs buster repo since I have the same issue there `…
Hit:4 https://jfrog.bintray.com/artifactory-debs buster InRelease
…
Encountered a section with no Package: header Problem with MergeList /var/lib/apt/lists/jfrog.bintray.com_artifactory-debs_dists_buster_main_binary-amd64_Packages The package lists or status file could not be parsed or opened. Can’t call method “policy” on an undefined value at /usr/bin/apt-show-versions line 53. Reading package lists… Error! E: Problem executing scripts APT::Update::Post-Invoke-Success ‘test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i’ E: Sub-process returned an error code E: Encountered a section with no Package: header E: Problem with MergeList /var/lib/apt/lists/jfrog.bintray.com_artifactory-debs_dists_buster_main_binary-amd64_Packages E: The package lists or status file could not be parsed or opened. `