引流关键词: debian
系统环境信息
注意!这里只是交代!具体情况无需与我一致!
命令 | 输出 |
---|---|
cat /proc/version | Linux version 6.6.2-edge-rockchip64 (armbian@next) (aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #1 SMP PREEMPT Mon Nov 20 10:59:39 UTC 2023 |
uname -a | Linux rockpi-4bplus 6.6.2-edge-rockchip64 #1 SMP PREEMPT Mon Nov 20 10:59:39 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux |
cat /etc/os-release | PRETTY_NAME="Armbian 23.11.1 jammy" NAME="Ubuntu" VERSION_ID="22.04" VERSION="22.04.3 LTS (Jammy Jellyfish)" VERSION_CODENAME=jammy ID=ubuntu ID_LIKE=debian HOME_URL="https://www.armbian.com" SUPPORT_URL="https://forum.armbian.com" BUG_REPORT_URL="https://www.armbian.com/bugs" PRIVACY_POLICY_URL="https://www.armbian.com" UBUNTU_CODENAME=jammy ARMBIAN_PRETTY_NAME="Armbian 23.11.1 jammy" |
- CPU架构:arm64/armv8
- 板子型号:Radxa Rockpi 4B+
与时俱进
如果你使用 pip3
来安装软件,那么你会得到大大的警告:
WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
出于系统安全考虑,那就装个 pipx
来代替。
卸掉原有的 glances
sudo cp /etc/glances/glances{.conf,.conf.bak} #备份配置文件
sudo apt purge -y glances
安装 glances
sudo apt install -y gcc make cmake python3 python3-dev python3-dateutil pipx
pipx ensurepath
pipx install --include-deps --system-site-packages --verbose glances[all]
查看运行 glances 日志,排查其它错误
tail -f ~/.local/share/glances/glances.log
输出
2024-02-26 16:50:31,168 -- INFO -- Start Glances 3.4.0.3
2024-02-26 16:50:31,169 -- INFO -- CPython 3.10.12 (/root/.local/pipx/venvs/glances/bin/python) and psutil 5.9.0 detected
2024-02-26 16:50:31,214 -- INFO -- Start GlancesStandalone mode
2024-02-26 16:50:31,611 -- ERROR -- containers (Podman) plugin - Can't connect to Podman (http://%2Frun%2Fuser%2F1000%2Fpodman%2Fpodman.sock/v4.9.0/libpod/_ping (HEAD operation failed))
2024-02-26 16:50:31,631 -- WARNING -- Wifi lib is not compliant with Python 3, Wifi plugin is disabled
这个 wifi 插件我也不知道如何解决,问题不大(用不上),等上游修复吧 😃