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.
-
AuthorPosts
-
November 3, 2022 at 4:44 pm #92183Member
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 ago by stephenbbb.
November 3, 2022 at 4:48 pm #92188Forum Admin
anticapitalista
::sudo apt upgrade && apt update should be
sudo apt update && sudo apt upgrade- This reply was modified 6 months 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.
November 3, 2022 at 7:28 pm #92219Memberstephenbbb
::wow, that is a great catch. based on the error thrown I could never suspect a syntax error.
November 3, 2022 at 8:13 pm #92226Moderator
Brian Masinick
::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 upgradeand 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 -
AuthorPosts
- You must be logged in to reply to this topic.