I created the following alias by hand and it gave me an error:
alias updater='sudo apt-get update | apt-get upgrade | apt-get autoclean | apt-get autoremove'
Error:
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?
E: Could not open lock file /var/cache/apt/archives/lock - open (13: Permission denied)
E: Unable to lock the download directory
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?
[sudo] password:
Entering my password does nothing.
How can I make this work?
Thanks
Bookmarks