linode-cli upgrade bug?

OS debian 11

AP return "The API responded with version 4.150.0, which is newer than the CLI's version of 4.149 .0. Please update the CLI to get access to the newest features. You can update with a simple pip3 install --upgrade linode-cli
"

so try run

pip3 install --upgrade linode-cli

return this and try check versions is old

[root@BO spider]# pip3 install --upgrade linode-cli
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead.
Requirement already up-to-date: linode-cli in /usr/local/lib/python3.6/site-packages
Requirement already up-to-date: terminaltables in /usr/local/lib/python3.6/site-packages (from linode-cli)
Requirement already up-to-date: requests in /usr/local/lib/python3.6/site-packages (from linode-cli)
Requirement already up-to-date: PyYAML in /usr/local/lib64/python3.6/site-packages (from linode-cli)
Requirement already up-to-date: packaging in /usr/local/lib/python3.6/site-packages (from linode-cli)
Requirement already up-to-date: charset-normalizer~=2.0.0; python_version >= "3" in /usr/local/lib/python3.6/site-packages (from requests->linode-cli)
Requirement already up-to-date: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.6/site-packages (from requests->linode-cli)
Requirement already up-to-date: idna<4,>=2.5; python_version >= "3" in /usr/local/lib/python3.6/site-packages (from requests->linode-cli)
Requirement already up-to-date: certifi>=2017.4.17 in /usr/local/lib/python3.6/site-packages (from requests->linode-cli)
Requirement already up-to-date: pyparsing!=3.0.5,>=2.0.2 in /usr/local/lib/python3.6/site-packages (from packaging->linode-cli)
[root@BO spider]# linode-cli -v
linode-cli 5.34.1
Built off spec version 4.149.0
[root@BO spider]# uname -a
Linux BO 4.18.0-483.el8.x86_64 #1 SMP Fri Mar 31 13:24:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

this bug or the OS cache problem?

i have try reinstall linode-cli, same old versions

Thanks

1 Reply

The message is not so much a bug as it is a warning. It's alerting you to not run that command while logged into your Linode as root but as a limited user.

This blog post provides further context around why you do not want to run that command as root: Do not run pip as root - GetPageSpeed

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct