Буквально пару дней назад возник вопрос о создание «виртуального окружения» для юзера. Чтобы он подключился по ssh к удаленному компу и у него был корень условный /home/username, чтобы юзер не смог снести систему я забрал доступ от всех файлов вне корня, но встал другой вопрос- нерабочий apt. отблагодарю копеечкой apt install python3.10 Fetched 18.5 MB in 7s (2,818 kB/s) E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 73%E: Cannot get debconf version. Is debconf installed? debconf: apt-extracttemplates failed: No such file or directory Extracting templates from packages: 100% dpkg: error: requested operation requires superuser privilege W: Problem unlinking the file /var/log/apt/eipp.log.xz - FileFd::Open (1: Operation not permitted) W: Could not open file /var/log/apt/eipp.log.xz - open (17: File exists) W: Could not open file '/var/log/apt/eipp.log.xz' - EIPP::OrderInstall (17: File exists) E: Sub-process /usr/bin/dpkg returned an error code (2)
Возможно поможет, хотя бы будешь понимать, в каких направлениях копать дальше https://superuser.com/questions/196262/how-to-change-the-root-directory-for-a-linux-user