Why do all the sudo? [was Re: Software updater no longer functional]

Chris Green cl at isbd.net
Sun Jan 22 12:37:23 UTC 2017


This is a classic case where I wonder why not change:-

> 
> Next steps:
> 
> sudo apt-get install -f
> 
>  -- fixes any package errors
> 
> NOTE THEM DOWN if it doesn't work & tell us
> 
> sudo apt-get clean
> 
>  -- empty the package cache
> 
> sudo apt-get autoremove -y
> 
>  -- remove obsoleted packages & ones nothing else use
> 
> sudo touch /forcefsck
> sudo shutdown -r now
> 

to:-

> 
> Next steps:
> 
> sudo -i
> apt-get install -f
> 
>  -- fixes any package errors
> 
> NOTE THEM DOWN if it doesn't work & tell us
> 
> apt-get clean
> 
>  -- empty the package cache
> 
> apt-get autoremove -y
> 
>  -- remove obsoleted packages & ones nothing else use
> 
> touch /forcefsck
> shutdown -r now
> 

It saves typing!  :-)

This is by no means the worst case, you often see great streams of
'sudo this' and 'sudo that' in descriptions of how to do things.

-- 
Chris Green




More information about the ubuntu-users mailing list