Today I created a new alias in
alias upgrade='aptitude update && aptitude full-upgrade -y'
but when I run
upgrade, it shows:
E: Could not open the lock file "/var/lib/apt/lists/lock" - open (13: Permission denied) E: Could not lock /var/lib/apt/lists/
I tried putting:
alias upgrade='sudo aptitude update && aptitude full-upgrade -y'
but I have the same error, and I try running:
but I have the same error. How can I solve this?
If you need more information, tell me.