Announcement

Collapse
No announcement yet.

Can' install apt-file

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Post-Install] Can' install apt-file

    Can you explain to me how I can install apt-file. I wrote in shell:

    sudo apt install apt-file
    But reply is:

    Solving dependencies... Error!
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:

    Unsatisfied dependencies:
    apt-file : Depends: libapt-pkg-perl but it is not going to be installed
    Depends: libregexp-assemble-perl but it is not going to be installed
    Error: Unable to satisfy dependencies. Reached two conflicting assignments:
    1. libapt-pkg-perl:amd64 is selected for install because:
    1. apt-file:amd64=3.3 is selected for install
    2. apt-file:amd64 Depends libapt-pkg-perl
    2. libapt-pkg-perl:amd64 Depends perlapi-5.38.2
    but none of the choices are installable:
    - perl-base:amd64=5.38.2-3.2build2 is not selected for install
    ​What can I do in this situation? My system Kubuntu 26.04 LTS.

    ​

    #2
    Run
    Code:
    sudo apt update
    1st and then try again.
    If that don't work then pls give output of these commands
    Code:
    apt policy apt-file libapt-pkg-perl perl-base
    Code:
    apt-mark showhold
    Code:
    lsb_release -a
    ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

    Comment


      #3
      apt policy apt-file libapt-pkg-perl perl-base
      apt-file:
      Installed: (none)
      Candidate: 3.3
      Version table:
      3.3 500
      500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
      500 http://archive.ubuntu.com/ubuntu noble/universe i386 Packages
      libapt-pkg-perl:
      Installed: (none)
      Candidate: 0.1.40build7
      Version table:
      0.1.40build7 500
      500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
      perl-base:
      Installed: 5.40.1-7ubuntu0.3
      Candidate: 5.40.1-7ubuntu0.3
      Version table:
      *** 5.40.1-7ubuntu0.3 100
      100 /var/lib/dpkg/status
      5.38.2-3.2build2 500
      500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
      Notice: Ignoring file 'copy_of_ubuntu_sources' in directory '/etc/apt/sources.list.d/' as it has no filename extension

      apt-mark showhold
      N: Ignoring file 'copy_of_ubuntu_sources' in directory '/etc/apt/sources.list.d/' as it has no filename extension

      lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 26.04.1 LTS
      Release: 26.04
      Codename: resolute

      ​

      Comment


        #4
        did you do
        Code:
        sudo apt update
        and
        Code:
        sudo apt install apt-file
        first?
        ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

        Comment


          #5
          Originally posted by trvatrva View Post
          apt policy apt-file libapt-pkg-perl perl-base
          apt-file:
          Installed: (none)
          Candidate: 3.3
          Version table:
          3.3 500
          500 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
          500 http://archive.ubuntu.com/ubuntu noble/universe i386 Packages
          libapt-pkg-perl:
          Installed: (none)
          Candidate: 0.1.40build7
          Version table:
          0.1.40build7 500
          500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
          perl-base:
          Installed: 5.40.1-7ubuntu0.3
          Candidate: 5.40.1-7ubuntu0.3
          Version table:
          *** 5.40.1-7ubuntu0.3 100
          100 /var/lib/dpkg/status
          5.38.2-3.2build2 500
          500 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
          Notice: Ignoring file 'copy_of_ubuntu_sources' in directory '/etc/apt/sources.list.d/' as it has no filename extension

          apt-mark showhold
          N: Ignoring file 'copy_of_ubuntu_sources' in directory '/etc/apt/sources.list.d/' as it has no filename extension

          lsb_release -a
          No LSB modules are available.
          Distributor ID: Ubuntu
          Description: Ubuntu 26.04.1 LTS
          Release: 26.04
          Codename: resolute

          ​
          your running Kubuntu 26.04, but APT is retrieving packages from Ubuntu 24.04 (Noble) repositories.​
          please post output of this to see exactly which repositories are enabled.
          Code:
          grep -RniE '^(deb |Suites:|URIs:|Components:)' /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null
          ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

          Comment


            #6
            Yes! I did

            sudo apt update
            sudo apt install apt-file

            ​
            But error is remaining. And yes I interrupted ubuntu.sources and changed repositories, because I am currently trying to solve problem with elisa player. copy_of_ubuntu_sources is​ my backup file of ubuntu.sources.

            The output of code grep -RniE '^(deb |Suites:|URIs:|Components)' /etc/apt/sources.list /etc/apt/sources.list.d/ 2>/dev/null

            /etc/apt/sources.list.d/ubuntu.sources:37:URIs: http://secure.ubuntu.com
            /etc/apt/sources.list.d/ubuntu.sources:38:Suites: bookworm
            /etc/apt/sources.list.d/ubuntu.sources:39:Components: main restricted universe multiverse
            /etc/apt/sources.list.d/ubuntu.sources:45:URIs: http://secure.ubuntu.com
            /etc/apt/sources.list.d/ubuntu.sources:46:Suites: bookworm
            /etc/apt/sources.list.d/ubuntu.sources:47:Components: main restricted universe multiverse
            /etc/apt/sources.list.d/ubuntu.sources:84:URIs: http://archive.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/ubuntu.sources:87:Suites: noble
            /etc/apt/sources.list.d/ubuntu.sources:88:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:34:URIs: http://archive.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:37:Suites: noble
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:38:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:74:URIs: http://archive.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:77:Suites: noble noble-updates noble-backports
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:78:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:115:URIs: http://archive.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:118:Suites: noble-backports
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:119:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:126:URIs: http://security.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:128:Suites: noble-security
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:129:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:136:URIs: http://security.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:138:Suites: noble
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:139:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:145:URIs: http://security.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:147:Suites: noble-updates
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:148:Components: main universe restricted multiverse
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:155:URIs: http://security.ubuntu.com/ubuntu/
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:157:Suites: noble-backports
            /etc/apt/sources.list.d/copy_of_ubuntu_sources:158:Components: main universe restricted multiverse​

            Comment


              #7
              Originally posted by trvatrva View Post
              And yes I interrupted ubuntu.sources and changed repositories, because I am currently trying to solve problem with elisa player.

              And thus you broke your updates
              So don't do that .
              You cannot mix different Ubuntu releases. The best thing that happens is you can't update or install software; the worst is significant breakages from mismatched OS or desktop components everywhere.
              Last edited by claydoh; Today, 04:41 AM.
              Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
              HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
              HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux​

              Comment


                #8
                hmmm k , you have two different release names appearing in the active configuration:​bookworm from debian 12 , noble and resolute from ubuntu

                please post this last output before we fix that
                Code:
                cat /etc/apt/sources.list.d/ubuntu.sources
                ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

                Comment


                  #9
                  lol how did I miss that?
                  Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
                  HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
                  HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux​

                  Comment


                    #10
                    # Automatically generated by Calamares on 2026-08-21.
                    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                    # newer versions of Kubuntu.
                    ## Ubuntu distribution repository
                    ##
                    ## The following settings can be adjusted to configure which packages to use from Ubuntu.
                    ## Mirror your choices (except for URIs and Suites) in the security section below to
                    ## ensure timely security updates.
                    ##
                    ## Types: Append deb-src to enable the fetching of source package.
                    ## URIs: A URL to the repository (you may add multiple URLs)
                    ## Suites: The following additional suites can be configured
                    ## <name>-updates - Major bug fix updates produced after the final release of the
                    ## distribution.
                    ## <name>-backports - software from this repository may not have been tested as
                    ## extensively as that contained in the main release, although it includes
                    ## newer versions of some applications which may provide useful features.
                    ## Also, please note that software in backports WILL NOT receive any review
                    ## or updates from the Ubuntu security team.
                    ## Components: Aside from main, the following components can be added to the list
                    ## restricted - Software that may not be under a free license, or protected by patents.
                    ## universe - Community maintained packages.
                    ## Software from this repository is only maintained and supported by Canonical
                    ## for machines with Ubuntu Pro subscriptions. Without Ubuntu Pro, the Ubuntu
                    ## community provides best-effort security maintenance.
                    ## multiverse - Community maintained of restricted. Software from this repository is
                    ## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
                    ## licence. Please satisfy yourself as to your rights to use the software.
                    ## Also, please note that software in multiverse WILL NOT receive any
                    ## review or updates from the Ubuntu security team.
                    ##
                    ## See the sources.list(5) manual page for further settings.
                    Types: deb
                    ##URIs: http://deb.debian.org/debian/
                    ##Suites: resolute resolute-updates resolute-backports
                    ##URIs: http://ftp.debian.org/debian
                    URIs: http://secure.ubuntu.com
                    Suites: bookworm
                    Components: main restricted universe multiverse
                    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

                    Types: deb-src
                    ##URIs: http://archive.ubuntu.com/ubuntu/
                    ##URIs: http://ftp.debian.org/debian
                    URIs: http://secure.ubuntu.com
                    Suites: bookworm
                    Components: main restricted universe multiverse
                    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

                    # Automatically generated by Calamares on 2026-08-21.
                    # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
                    # newer versions of Kubuntu.
                    ## Ubuntu distribution repository
                    ##
                    ## The following settings can be adjusted to configure which packages to use from Ubuntu.
                    ## Mirror your choices (except for URIs and Suites) in the security section below to
                    ## ensure timely security updates.
                    ##
                    ## Types: Append deb-src to enable the fetching of source package.
                    ## URIs: A URL to the repository (you may add multiple URLs)
                    ## Suites: The following additional suites can be configured
                    ## <name>-updates - Major bug fix updates produced after the final release of the
                    ## distribution.
                    ## <name>-backports - software from this repository may not have been tested as
                    ## extensively as that contained in the main release, although it includes
                    ## newer versions of some applications which may provide useful features.
                    ## Also, please note that software in backports WILL NOT receive any review
                    ## or updates from the Ubuntu security team.
                    ## Components: Aside from main, the following components can be added to the list
                    ## restricted - Software that may not be under a free license, or protected by patents.
                    ## universe - Community maintained packages.
                    ## Software from this repository is only maintained and supported by Canonical
                    ## for machines with Ubuntu Pro subscriptions. Without Ubuntu Pro, the Ubuntu
                    ## community provides best-effort security maintenance.
                    ## multiverse - Community maintained of restricted. Software from this repository is
                    ## ENTIRELY UNSUPPORTED by the Ubuntu team, and may not be under a free
                    ## licence. Please satisfy yourself as to your rights to use the software.
                    ## Also, please note that software in multiverse WILL NOT receive any
                    ## review or updates from the Ubuntu security team.
                    ##
                    ## See the sources.list(5) manual page for further settings.

                    Types: deb
                    URIs: http://archive.ubuntu.com/ubuntu/
                    ##Suites: resolute resolute-updates resolute-backports
                    ##URIs: http://ftp.debian.org/debian
                    Suites: noble
                    Components: main universe restricted multiverse
                    Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

                    ​

                    Comment


                      #11
                      So undo all the changes you made and try updating again.

                      I am hoping that the system is not fubar and getting back to a proper set of repos gets things back to normal.
                      Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
                      HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
                      HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux​

                      Comment


                        #12
                        your ubuntu.sources file is badly misconfigured.​

                        back up the file 1st
                        Code:
                        sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak
                        then edit the file
                        Code:
                        sudo nano /etc/apt/sources.list.d/ubuntu.sources
                        Replace its contents with

                        Types: deb
                        URIs: http://archive.ubuntu.com/ubuntu/
                        Suites: resolute resolute-updates resolute-backports
                        Components: main restricted universe multiverse
                        Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

                        Types: deb
                        URIs: http://security.ubuntu.com/ubuntu/
                        Suites: resolute-security
                        Components: main restricted universe multiverse
                        Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg zz0.0w64usz5pecazz


                        Save with Ctrl+O, Enter, and exit with Ctrl+X.​

                        then
                        Code:
                        sudo apt update
                        Check that APT is now using Resolute repositories:
                        Code:
                        apt policy apt-file libapt-pkg-perl perl-base
                        Only if the repository update succeeds and the package candidates are consistent ,can you try:
                        Code:
                        sudo apt install apt-file
                        Code:
                        sudo apt-file update​


                        ​
                        Last edited by die.boer; Today, 05:40 AM.
                        ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

                        Comment


                          #13
                          I changed ubuntu.source but the output is:
                          sudo apt update
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: The list of sources could not be read.

                          apt policy apt-file libapt-pkg-perl perl-base
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: The list of sources could not be read.

                          sudo apt install apt-file
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: Invalid value set for option Signed-By regarding source http://security.ubuntu.com/ubuntu/ resolute-security (not a fingerprint)
                          Error: The list of sources could not be read.

                          sudo apt-file update
                          sudo: 'apt-file': command not found​

                          Comment

                          Users Viewing This Topic

                          Collapse

                          There are 2 users viewing this topic.

                          Working...
                          X