vagnum08 / cpupower-gui

cpupower-gui is a graphical program that is used to change the scaling frequency limits of the cpu, similar to cpupower.
GNU General Public License v3.0
430 stars 31 forks source link

apt update "GPG error" in Linux Mint 20.3 #80

Open carlymx opened 2 years ago

carlymx commented 2 years ago

Hello.

I just installed on my HP VICTUS Linux Mint 20.3 Laptop with kernel 5.13.0-30 and everything works without problems.

I want to install the latest version of cpupower-gui (v1.0.0) for my battery management and in the Linux Mint and Ubuntu repositories as you know it is not available yet (v0.7.2).

I have followed the mini tutorial of the Readme.md that indicates the following lines for my system:

echo 'deb http://download.opensuse.org/repositories/home:/erigas:/cpupower-gui/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/home:erigas:cpupower-gui.list
curl -fsSL https://download.opensuse.org/repositories/home:erigas:cpupower-gui/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home:erigas:cpupower-gui.gpg > /dev/null
sudo apt update
sudo apt install cpupower-gui

apt update gives me this error:

W: GPG error: http://download.opensuse.org/repositories/home:/erigas:/cpupower-gui/xUbuntu_20.04 InRelease: The following signatures were invalid: EXPKEYSIG C5BDBD015C83816E home:erigas OBS Project <home: erigas@build.opensuse.org>
E: The repository "http://download.opensuse.org/repositories/home:/erigas:/cpupower-gui/xUbuntu_20.04 InRelease" is not signed.
N: You can't update from a repository like this safely and so it's disabled by default.
N: See the apt-secure(8) man page for details on creating repositories and configuring users. 

I have tried to acquire the signature by searching the Ubuntu servers, without success:

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C5BDBD015C83816E
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C5BDBD015C83816E

Can someone help me please?

user@victus$ neofetch 
             ...-:::::-...                 user@victus 
          .-MMMMMMMMMMMMMMM-.              ----------- 
      .-MMMM`..-:::::::-..`MMMM-.          OS: Linux Mint 20.3 x86_64 
    .:MMMM.:MMMMMMMMMMMMMMM:.MMMM:.        Host: Victus by HP Laptop 16-e0xxx 
   -MMM-M---MMMMMMMMMMMMMMMMMMM.MMM-       Kernel: 5.13.0-30-generic 
 `:MMM:MM`  :MMMM:....::-...-MMMM:MMM:`    Uptime: 1 hour, 26 mins 
 :MMM:MMM`  :MM:`  ``    ``  `:MMM:MMM:    Packages: 2244 (dpkg), 13 (flatpak) 
.MMM.MMMM`  :MM.  -MM.  .MM-  `MMMM.MMM.   Shell: bash 5.0.17 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM-MMM:   Resolution: 1920x1080 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM:MMM:   DE: Cinnamon 
:MMM:MMMM`  :MM.  -MM-  .MM:  `MMMM-MMM:   WM: Mutter (Muffin) 
.MMM.MMMM`  :MM:--:MM:--:MM:  `MMMM.MMM.   WM Theme: Orchis-dark (Orchis-dark) 
 :MMM:MMM-  `-MMMMMMMMMMMM-`  -MMM-MMM:    Theme: Orchis-dark [GTK2/3] 
  :MMM:MMM:`                `:MMM:MMM:     Icons: ePapirus [GTK2/3] 
   .MMM.MMMM:--------------:MMMM.MMM.      Terminal: gnome-terminal 
     '-MMMM.-MMMMMMMMMMMMMMM-.MMMM-'       CPU: AMD Ryzen 7 5800H with Radeon G 
       '.-MMMM``--:::::--``MMMM-.'         GPU: NVIDIA 01:00.0 NVIDIA Corporati 
            '-MMMMMMMMMMMMM-'              GPU: AMD ATI 06:00.0 Device 1638 
               ``-:::::-``                 Memory: 3215MiB / 15335MiB 
vagnum08 commented 2 years ago

I am going to build a Debian package for you.

carlymx commented 2 years ago

@vagnum08 :100: You are a god to me. Thank you.

vagnum08 commented 2 years ago

@carlymx do you have snapd installed?

I have built cpupower-gui on mint. Libhandy-1 is missing from linuxmint though.

One option is to install it from snap package.

  1. You can install libhandy from Ubuntu repos but for some reason Mint has change the name of libgdk-pixbuf from libgdk-pixbuf-2.0 to libgdk-pixbuf2.0 so libhandy is not installable directly unless I edit the libhandy package.
vagnum08 commented 2 years ago

Here is the cpupower-gui debian package.

First install libhandy and gir1.2-handy

sudo dpkg -i libhandy-1-0_1.2.3-1_amd64.modified.deb gir1.2-handy-1_1.2.3-1_amd64.deb

Then install cpupower-gui from cli with dpkg as above or from gdebi installer, etc.. Let me know if you have any issues.

P.S. I modified the libhandy-1 package to depend on version of libgdk that exists on the repos.

Download: cpupower-gui and deps.zip

carlymx commented 2 years ago

I have installed it as you said without any problem. It is working well. In a few days I will comment on my impressions but I am sure they are excellent. Thank you very much, you are a genius.

PS: I think you could upload it to Release.

jason-eu commented 2 years ago

sudo dpkg -i libhandy-1-0_1.2.3-1_amd64.modified.deb gir1.2-handy-1_1.2.3-1_amd64.deb

Device; Microsoft Surface Pro, 4GB/128GB OS; Linux Mint 20.3 Cinnamon Cinnamon version; 5.2.7 Linux kernel; 5.17.4-surface CPU; Intel© Core™ i5-6300U CPU @ 2.40GHz × 2 GPU; Intel Corporation Skylake GT2 [HD Graphics 520]

This worked for me.