NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

davidtheo's avatar
davidtheo
Aspirant
Jun 12, 2018

SU Access

I am trying to run apt-get update but can not.

 

Can someone please help.

 

user_name@NAS:/data/website$ su user_name
Password:
user_name@NAS:/data/website$ apt-get update
Reading package lists... Done
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)
user_name@NAS:/data/website$ su user_name apt-get update
Password:
/usr/bin/apt-get: /usr/bin/apt-get: cannot execute binary file
user_nameNAS:/data/website$ apt-get update
Reading package lists... Done
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)
user_name@NAS:/data/website$

8 Replies

Replies have been turned off for this discussion
  • mdgm-ntgr's avatar
    mdgm-ntgr
    NETGEAR Employee Retired

    Have you tried logging in to SSH as 'root' (no quotes)?

      • StephenB's avatar
        StephenB
        Guru - Experienced User

        davidtheo wrote:
        Yes I can not log in as root.

        Something is off then.  You should be able to log in as root, using the NAS admin password (and that is the normal way to access the NAS with ssh).

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More