答案1
答案2
让我们看看为什么它无法启动:
cd ~/Downloads
wget https://netix.dl.sourceforge.net/project/cpug/cpu-g-0.9.0.tar.gz
tar -xf cpu-g-0.9.0.tar.gz
cd cpu-g-0.9.0
启动它:
$ ./cpu-g You need to have PyGTK 2.10.0, GTK.Glade and GTK+ 2.10.0 or higher installed in your system in order to run CPU-G.
因此至少需要安装两个软件包
sudo apt-get install python-gtk2 python-glade2
然后它将启动:
sudo ./cpu-g
(在虚拟机和真实硬件上测试)
关于来自 PPA 的软件包(ppa:atareao/atareao
)我还发现它不是以以下内容开头:
$ /opt/extras.ubuntu.com/cpu-g/bin/cpu-g [Errno 2] No translation file found for domain: 'cpu-g' /opt/extras.ubuntu.com/cpu-g/share/cpu-g/distros/ubuntu.png [Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/charge_now' [Errno 2] No such file or directory: '/sys/class/power_supply/BAT0/charge_now' Traceback (most recent call last): File "/opt/extras.ubuntu.com/cpu-g/bin/cpu-g", line 42, in <module> cpug = CPUG() File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 999, in __init__ self.update_info() File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1318, in update_info self.start_battery_updater() File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1346, in start_battery_updater self.get_battery_duration() File "/opt/extras.ubuntu.com/cpu-g/share/cpu-g/cpug.py", line 1079, in get_battery_duration inv.battery_info('charge-now')/1000000) + _(' Ah')) TypeError: unsupported operand type(s) for /: 'str' and 'int'
答案3
另一种选择是 CPU-X
在 18.04 上,如果您想使用 app-image 而不是 apt,则可能必须使用版本 4.3.1
项目状态:
它看起来与 CPU-G 相似,但不知道是否有任何关系。
它还具有curses
和dump
模式。
GTK:
终端: