11-03-2019, 09:16 PM
(11-03-2019, 07:48 PM)rick1959 Wrote:(11-03-2019, 07:42 PM)evilbunny Wrote:Perfect, Thank You!!!(11-03-2019, 07:41 PM)rick1959 Wrote:(11-03-2019, 07:32 PM)evidddlbunny Wrote:Thanks EV, but here's what I get when I put sudo in front:(11-03-2019, 07:30 PM)drick1959 Wrote: Unfortunately, those commands aren't working.
I get this:
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
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)
Any ideas? Thanks! :-)
use sudo in front of the commands above...
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Any other ideas? Thanks! :-)
&& starts a new command, so you need to add sudo between && and apt-get
The modified command : sudo apt-get update && sudo apt-get dist-upgrade
Works like a charm! :-)
In tutorials, you see quite often commands prefixed with either # or $. They are the typical login prompts, # for root and $ for non-root and they indicate what privileges are required to execute them.
How to become root is a matter of preference.
Hope that helps to avoid confusion in the future.