unable to update

Forum Forums New users New Users and General Questions unable to update

  • This topic has 3 replies, 3 voices, and was last updated Nov 3-8:13 pm by Brian Masinick.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #92183
    Member
    stephenbbb

      I am trying to update in order to get a newer openssl, which is needed by rstudio.

      
      $ uname -a
      Linux asus 5.10.57-antix.1-amd64-smp #1 SMP PREEMPT Sun Aug 8 11:11:51 EEST 2021 x86_64 GNU/Linux
      $ sudo apt upgrade && apt update
      Reading package lists... Done
      Building dependency tree... Done
      Reading state information... Done
      Calculating upgrade... Done
      0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Reading package lists... Done
      E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
      E: Unable to lock directory /var/lib/apt/lists/
      W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
      W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
      
      

      this happens after fresh reboot. I manually deleted the two files it was choking on and made the lock file executable and writable by everybody and still get the same error.

      • This topic was modified 6 months, 1 week ago by stephenbbb.
      #92188
      Forum Admin
      anticapitalista
        Helpful
        Up
        2
        ::

        sudo apt upgrade && apt update should be

        
        sudo apt update && sudo apt upgrade
        • This reply was modified 6 months, 1 week ago by anticapitalista. Reason: put in code

        Philosophers have interpreted the world in many ways; the point is to change it.

        antiX with runit - leaner and meaner.

        #92219
        Member
        stephenbbb
          Helpful
          Up
          0
          ::

          wow, that is a great catch. based on the error thrown I could never suspect a syntax error.

          #92226
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            Yeah, any apt-based tools need to run under the effective ID of the root user. If you don’t want to put in sudo every time AND you DO allow root logins, you can do this:

            sudo su -
            (This will put you into the root account, and also in the directory /root).

            Then you can run:

            apt update && apt upgrade

            and it will WORK!

            My personal preference when I’m updating ALL packages is to run either a full-upgrade or a dist-upgrade – the second one comes from the original “apt-get” command, the second one, “full-upgrade” is from the newer, shorter, condensed apt command; either work fine.

            --
            Brian Masinick

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.