Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-26334

Debian - packages converted from rpm to deb brake the repository indexing

    XMLWordPrintable

    Details

      Description

      Description:

      A package that builds from a translated rpm using alien brakes the repository indexing. No alien translated packages work, they all cause this problem.

      Steps to reproduce:

      1. Upload one native Debian package to a local Debian repository
      2. Update the source list file as the below
        sudo sh -c "echo 'deb https://admin:password@noyb.jfrog.io/artifactory/debian-local 3rdparty release' >> /etc/apt/sources.list"
        
      1. Perform from your client the 'apt update' command, which should end successfully
      2. Upload another package - this time it should be rpm package type that was converted using alien.
      3. Then, attempt to perform again 'apt update' from the same client again, this time it will fail with the following errors.

      Expected results:

      sudo apt update 
      Hit:1 http://europe-west3.gce.archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://europe-west3.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://europe-west3.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease Hit:5 http://archive.canonical.com/ubuntu xenial InRelease Ign:6 https://noyb.jfrog.io/artifactory/debian-local 3rdparty InRelease Get:7 https://noyb.jfrog.io/artifactory/debian-local 3rdparty Release [1930 B] Ign:8 https://noyb.jfrog.io/artifactory/debian-local 3rdparty Release.gpg Reading package lists... Done
      

      Actual results:

      sudo apt update 
      Hit:1 http://europe-west3.gce.archive.ubuntu.com/ubuntu xenial InRelease Hit:2 http://europe-west3.gce.archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:3 http://archive.canonical.com/ubuntu xenial InRelease Hit:4 http://europe-west3.gce.archive.ubuntu.com/ubuntu xenial-backports InRelease Hit:5 http://security.ubuntu.com/ubuntu xenial-security InRelease Ign:6 https://noyb.jfrog.io/artifactory/debian-local 3rdparty InRelease Ign:8 https://noyb.jfrog.io/artifactory/debian-local 3rdparty Release.gpg Get:9 https://noyb.jfrog.io/artifactory/debian-local 3rdparty/release amd64 Packages [800 B] Fetched 800 B in 0s (1467 B/s) Reading package lists... Error! E: Problem parsing dependency Depends 
      E: Error occurred while processing ripgrep (NewVersion2) 
      E: Problem with MergeList/var/lib/apt/lists/noyb.jfrog.io_artifactory_debian-local_dists_3rdparty_release_binary-amd64_Packages 
      E: The package lists or status file could not be parsed or opened.
      

      Additionally, not only the 'update' command is broken following adding the repository where the package is located but also - 'apt-get update', ' apt policy', and 'apt install'. 

      Also, solutions like this one - https://itsfoss.com/how-to-fix-problem-with-mergelist/ did not solve the issue. Only removing the relevant line from the sources.list file from the clients and perform re-indexing to the repository solves the error for the entire repositories but not solving it for the specific package as it breaks the 3rdparty dist in the repository.  

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              noyb Noy Badani
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: