'sudo topgrade' is not working. #825
-
i just tried to call |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
can you paste the error you see when running with I'm not sure if this is in the documentation somewhere, but my understanding is that we should avoid running topgrade --edit-config In the configuration file, add or uncomment the following line: [misc]
# ...
pre_sudo = true
# ... Runing |
Beta Was this translation helpful? Give feedback.
-
The error message i receive is 'sudo: topgrade: command not found'. |
Beta Was this translation helpful? Give feedback.
-
Yeah, you got the cmd not found error because sudo on Linux won't preserve PATH, see https://stackoverflow.com/questions/257616/why-does-sudo-change-the-path And you should use the pre-sudo config entry. |
Beta Was this translation helpful? Give feedback.
can you paste the error you see when running with
sudo
?I'm not sure if this is in the documentation somewhere, but my understanding is that we should avoid running
topgrade
as superuser directly. The tool will ask for your superuser password when required. If you want to avoid retyping it do as follows:In the configuration file, add or uncomment the following line:
Runing
topgrade
itself as superuser means running every upgraded tool as superuser - some of which might not be designed to be executed at this privilege level.