apt-key warnings during package upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shibumi
    Visitor
    • Jan 2018
    • 9

    apt-key warnings during package upgrade

    Hello, again! I noticed this in my apt upgrade logs today and thought I'd point it out.

    Code:
    Setting up bcompare (4.2.5-23088) ...
    Warning: The postinst maintainerscript of the package bcompare
    Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
    Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
    Note: Check first if apt-key functionality is needed at all - it probably isn't!
    Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package bcompare)
    I'm going to guess you already know about this, but just in case...

    Thanks for the awesome product!
  • Aaron
    Team Scooter
    • Oct 2007
    • 16008

    #2
    Thanks for the update. It is something we're investigating.
    Aaron P Scooter Software

    Comment

    • shibumi
      Visitor
      • Jan 2018
      • 9

      #3
      Originally posted by Aaron
      Thanks for the update. It is something we're investigating.
      Awesome. I'll keep an eye out. Thanks!

      Comment

      • darhaywa
        New User
        • Oct 2019
        • 2

        #4
        Did this ever get fixed, I noticed this today?.

        Code:
        Setting up bcompare (4.3.0-24364) ...
        cp: cannot create regular file '/usr/share/kservices5/': Not a directory
        Warning: The postinst maintainerscript of the package bcompare
        Warning: seems to use apt-key (provided by apt) without depending on gnupg or gnupg2.
        Warning: This will BREAK in the future and should be fixed by the package maintainer(s).
        Note: Check first if apt-key functionality is needed at all - it probably isn't!
        Warning: apt-key should not be used in scripts (called from postinst maintainerscript of the package bcompare)

        Comment

        • darhaywa
          New User
          • Oct 2019
          • 2

          #5
          Answered here

          Comment

          • Chris
            Team Scooter
            • Oct 2007
            • 5538

            #6
            The apt-key warning in Beyond Compare's .deb Linux package is fixed in version 4.3.5.
            Chris K Scooter Software

            Comment

            • SandJ
              Visitor
              • Dec 2021
              • 4

              #7
              I am running Linux and it offered to update Beyond Compare from v4.4.0 to v4.4.1
              As it was doing so I saw the message "cp: cannot create regular file '/usr/share/kservices5/': Not a directory" but I did not record any other messages.

              Comment

              • SandJ
                Visitor
                • Dec 2021
                • 4

                #8
                Found the log file:

                Log started: 2021-12-21 15:13:03
                Preparing to unpack .../bcompare_4.4.1-26165_amd64.deb ...^M
                Unpacking bcompare (4.4.1-26165) over (4.4.0-25886) ...^M
                Preparing to unpack .../firefox_95.0.1+build2-0ubuntu0.20.04.1_amd64.deb ...^M
                Unpacking firefox (95.0.1+build2-0ubuntu0.20.04.1) over (95.0+build1-0ubuntu0.20.04.1) ...^M
                Preparing to unpack .../firefox-locale-en_95.0.1+build2-0ubuntu0.20.04.1_amd64.deb ...^M
                Unpacking firefox-locale-en (95.0.1+build2-0ubuntu0.20.04.1) over (95.0+build1-0ubuntu0.20.04.1) ...^M
                Setting up firefox (95.0.1+build2-0ubuntu0.20.04.1) ...^M
                Please restart all running instances of firefox, or you will experience problems.^M
                Setting up bcompare (4.4.1-26165) ...^M
                cp: cannot create regular file '/usr/share/kservices5/': Not a directory^M
                Setting up firefox-locale-en (95.0.1+build2-0ubuntu0.20.04.1) ...^M
                Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...^M
                Processing triggers for mime-support (3.64ubuntu1) ...^M
                Processing triggers for hicolor-icon-theme (0.17-2) ...^M
                Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...^M
                Processing triggers for man-db (2.9.1-1) ...^M
                Processing triggers for shared-mime-info (1.15-1) ...^M
                Processing triggers for libc-bin (2.31-0ubuntu9.2) ...^M
                Log ended: 2021-12-21 15:14:47


                Comment

                • Aaron
                  Team Scooter
                  • Oct 2007
                  • 16008

                  #9
                  Which version of Linux are you running?
                  Aaron P Scooter Software

                  Comment

                  • SandJ
                    Visitor
                    • Dec 2021
                    • 4

                    #10
                    Originally posted by Aaron
                    Which version of Linux are you running?
                    Xubuntu 20.04.3 LTS 64-bit

                    Comment

                    • Chris
                      Team Scooter
                      • Oct 2007
                      • 5538

                      #11
                      Thank you. I tested a default install of BC 4.4.1 as well as an upgrade of BC 4.4.0 to 4.4.1 via apt on Xubuntu 20.04 and it didn't generate the error.

                      The install/upgrade script tries to install the KDE context menu if /usr/lib/x86_64-linux-gnu/qt5/plugins/ exists. That directory doesn't exist on a default install of Xubuntu 20.04 64-bit. It's likely some additional software installed on your system created the folder so Beyond Compare tried to install the file. Since you're not using KDE, the failure shouldn't cause any issues.

                      Chris K Scooter Software

                      Comment

                      • SandJ
                        Visitor
                        • Dec 2021
                        • 4

                        #12
                        Thank you for investigating and for explaining.

                        I do have a /usr/lib/x86_64-linux-gnu/qt5/plugins directory. I can see it was created when I installed NextCloud some months ago.

                        Comment

                        Working...