the && you did didn't pass your sudo through.  You'd need to do sudo dpkg -i ./whatever && sudo apt-get update.  So that both dpkg-i AND apt-get get launched by sudo.

On Wed, Aug 11, 2021 at 2:02 PM Snyder, Alexander J via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:
Login as root and add your user to /etc/sudoers

Thanks,
Alexander.

Sent from my Samsung S20+ 5G

On Wed, Aug 11, 2021, 13:59 greg zegan via PLUG-discuss <plug-discuss@lists.phxlinux.org> wrote:
Hello,
  I am trying to install some software on a new system and get this error:

zeke@Debian-10:~/Downloads$ sudo dpkg -i ./veeam-release* && apt-get update
[sudo] password for zeke: 
Selecting previously unselected package veeam-release-deb.
(Reading database ... 134594 files and directories currently installed.)
Preparing to unpack .../veeam-release-deb_1.0.8_amd64.deb ...
Unpacking veeam-release-deb (1.0.8) ...
Setting up veeam-release-deb (1.0.8) ...
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)
zeke@Debian-10:~/Downloads$ 


any ideas to correctly fix this without breaking something?

thanks,

Greg
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
https://lists.phxlinux.org/mailman/listinfo/plug-discuss


--
James McPhee
jmcphe@gmail.com