Skip to content

'sudo topgrade' is not working. #825

Closed Answered by lucaspar
lachsdachs asked this question in Q&A
Discussion options

You must be logged in to vote

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:

topgrade --edit-config

In the configuration file, add or uncomment the following line:

[misc]
    # ...
    pre_sudo = true
    # ...

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.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SteveLauC
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants