Files
Nexus/docs/changelog/2026-06-12-psutil-install-sudo-fix.md
T
2026-07-08 22:31:31 +08:00

20 lines
505 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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
```