Files
openclaude-LLM-local/docs/linux-server-fixes.md
T
2026-04-21 15:37:43 +10:00

19 lines
671 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.
# Мелкие фиксы на Linux-сервере (BOM, apt-зеркала)
## Скрипт падает с `#!/usr/bin/env: No such file or directory`
Причина: **BOM** (маркер UTF-8) в начале файла.
Фикс:
```bash
sed -i '1s/^\xEF\xBB\xBF//' script.sh
chmod +x script.sh
```
## После смены зеркала apt всё ещё ходит в `ru.archive.ubuntu.com`
Обычно источники лежат в **`*.sources`** (формат deb822), а не только в `sources.list`.
Нужно править **`URIs:`** в соответствующих deb822-блоках под выбранное зеркало.