Files

20 lines
505 B
Markdown
Raw Permalink Normal View History

# Changelog — psutil SSH 安装 apt sudo 修复
**日期**2026-06-12
## 摘要
修复非 root SSH 用户点击「安装 psutilSSH)」时 `apt-get` 无 sudo 导致 Permission denied。
## 变更
- `psutil_install` 脚本增加 `run_root()``apt/dnf/yum` 与系统 pip 在非 root 时走 `sudo`
- `sudo_wrap` sudoers 补充 `python3` / `pip3` 路径
- 安装失败时返回中文提示(apt lock / 需免密 sudo
## 验证
```bash
.venv/bin/pytest tests/test_psutil_install.py -q
```