Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo: undervolt: command not found #177

Open
jacekgajek opened this issue Mar 29, 2023 · 4 comments
Open

sudo: undervolt: command not found #177

jacekgajek opened this issue Mar 29, 2023 · 4 comments

Comments

@jacekgajek
Copy link

jacekgajek commented Mar 29, 2023

I've run the following commands:
Installation:

(base) jacek@cammembert:~$ sudo apt install python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libkf5waylandserver5 libkwaylandserver5 linux-hwe-5.19-headers-5.19.0-32
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libexpat1-dev libpython3-dev libpython3.10-dev python3-dev python3-wheel python3.10-dev
The following NEW packages will be installed:
  libexpat1-dev libpython3-dev libpython3.10-dev python3-dev python3-pip python3-wheel python3.10-dev
0 upgraded, 7 newly installed, 0 to remove and 7 not upgraded.
Need to get 6 780 kB of archives.
After this operation, 29,7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://pl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.2 [147 kB]
Get:2 http://pl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-dev amd64 3.10.6-1~22.04.2ubuntu1 [4 755 kB]
Get:3 http://pl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-dev amd64 3.10.6-1~22.04 [7 166 B]             
Get:4 http://pl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10-dev amd64 3.10.6-1~22.04.2ubuntu1 [507 kB]     
Get:5 http://pl.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-dev amd64 3.10.6-1~22.04 [26,0 kB]                
Get:6 http://pl.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-wheel all 0.37.1-2ubuntu0.22.04.1 [32,0 kB]   
Get:7 http://pl.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip all 22.0.2+dfsg-1ubuntu0.2 [1 305 kB]     
Fetched 6 780 kB in 7s (913 kB/s)                                                                                            
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 531494 files and directories currently installed.)
Preparing to unpack .../0-libexpat1-dev_2.4.7-1ubuntu0.2_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
Selecting previously unselected package libpython3.10-dev:amd64.
Preparing to unpack .../1-libpython3.10-dev_3.10.6-1~22.04.2ubuntu1_amd64.deb ...
Unpacking libpython3.10-dev:amd64 (3.10.6-1~22.04.2ubuntu1) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../2-libpython3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.10.6-1~22.04) ...
Selecting previously unselected package python3.10-dev.
Preparing to unpack .../3-python3.10-dev_3.10.6-1~22.04.2ubuntu1_amd64.deb ...
Unpacking python3.10-dev (3.10.6-1~22.04.2ubuntu1) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../4-python3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking python3-dev (3.10.6-1~22.04) ...
Selecting previously unselected package python3-wheel.
Preparing to unpack .../5-python3-wheel_0.37.1-2ubuntu0.22.04.1_all.deb ...
Unpacking python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Selecting previously unselected package python3-pip.
Preparing to unpack .../6-python3-pip_22.0.2+dfsg-1ubuntu0.2_all.deb ...
Unpacking python3-pip (22.0.2+dfsg-1ubuntu0.2) ...
Setting up python3-wheel (0.37.1-2ubuntu0.22.04.1) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
Setting up libpython3.10-dev:amd64 (3.10.6-1~22.04.2ubuntu1) ...
Setting up python3-pip (22.0.2+dfsg-1ubuntu0.2) ...
Setting up python3.10-dev (3.10.6-1~22.04.2ubuntu1) ...
Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
Setting up python3-dev (3.10.6-1~22.04) ...
Processing triggers for man-db (2.10.2-1) ...

Then

pip install undervolt

Then

(base) jacek@cammembert:~$ undervolt -r
You need to have root privileges to run this script with these options.
Rerun with 'sudo'.
(base) jacek@cammembert:~$ sudo undervolt -r
sudo: undervolt: command not found

System information:

Operating System: Ubuntu 22.04
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.3
Kernel Version: 5.19.0-38-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 23,2 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics
Manufacturer: Dell Inc.
Product Name: Vostro 14 5401

So now I'm in this infinite a loop.

Please help me with running this tool.

@jacekgajek jacekgajek changed the title You need to have root privileges to run this script with these options. sudo: undervolt: command not found Mar 29, 2023
@doxxedd
Copy link

doxxedd commented Apr 6, 2023

i have the same issue

@D-VR
Copy link

D-VR commented Apr 27, 2023

The reason it doesn't work is because undervolt is only installed for the user.

A dirty fix would be to run the pip install using sudo.

You could maybe also create a symlink at /usr/local/bin/undervolt pointing to your user copy

@notstarboard
Copy link

I ran into this same issue and spent way too long looking for a solution, but it's actually easy. Just install with:

pip3 install undervolt

Then you can run the python package directly from the folder it installed to using sudo. For me it's:

sudo python3 ~/.local/lib/python3.10/site-packages/undervolt.py

@momincks
Copy link

momincks commented Mar 2, 2024

install with sudo su

sudo su
pip install undervolt
undervolt --read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants