$ lxc exec smtp /bin/bash [root@smtp ~]# rpm -q filesystem filesystem-2.3.17-alt1.x86_64 делаю dist-upgrade ... 1: filesystem-2.3.18-alt1 #################################################################################################### [ 50%] error: unpacking of archive failed on file /proc: cpio: chown error: filesystem-2.3.18-alt1.x86_64: install failed error: filesystem-2.3.17-alt1.x86_64: erase skipped E: Some errors occurred while running transaction А все потому что в lxc /proc и /sys проброшены из host system из-за https://github.com/systemd/systemd/issues/15101 [root@smtp ~]# ll / total 80 dr-xr-xr-x 13 65534 65534 0 Jan 6 10:45 sys/ drwx------ 8 root root 4096 Jan 6 09:31 root/ drwxrwxrwt 12 root root 240 Jan 6 09:29 tmp/ drwxr-xr-x 10 root root 380 Oct 9 09:14 run/ drwxr-xr-x 8 root root 500 Oct 9 09:13 dev/ dr-xr-xr-x 457 65534 65534 0 Oct 9 09:13 proc/ drwxr-xr-x 69 root root 4096 Mar 25 2020 etc/ drwxr-xr-x 18 root root 4096 Mar 25 2020 lib/ drwxr-xr-x 3 root root 12288 Mar 24 2020 lib64/ drwxr-xr-x 2 root root 4096 Mar 24 2020 bin/ drwxr-xr-x 2 root root 4096 Mar 24 2020 sbin/ drwxr-xr-x 19 root root 4096 Sep 23 2019 var/ drwxr-xr-x 14 root root 4096 Sep 23 2019 usr/ dr-xr-xr-x 2 root root 4096 Sep 23 2019 selinux/ drwxr-xr-x 2 root root 4096 Sep 23 2019 srv/ drwxr-xr-x 2 root root 4096 Sep 23 2019 mnt/ drwxr-xr-x 2 root root 4096 Sep 23 2019 opt/ drwxr-xr-x 2 root root 4096 Sep 23 2019 libx32/ drwxr-xr-x 2 root root 4096 Sep 23 2019 media/ drwxr-xr-x 2 root root 4096 Sep 23 2019 home/ drwx------ 2 root root 4096 Sep 23 2019 boot/ drwxr-xr-x 23 root root 4096 Sep 23 2019 ./ drwxr-xr-x 23 root root 4096 Sep 23 2019 ../ 1) я хочу таки завершить dist-upgrade 2) хотелось бы выбора подсистемы для сети, а не только networkd, который есть в контейнере от altlinux $ lxc image list +-------+--------------+--------+-------------------------------------+--------------+-----------+----------+-----------------------------+ | ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE | +-------+--------------+--------+-------------------------------------+--------------+-----------+----------+-----------------------------+ | | d9a7d625586f | no | Alt Sisyphus amd64 (20210107_01:17) | x86_64 | CONTAINER | 181.51MB | Jan 7, 2021 at 8:18am (UTC) | +-------+--------------+--------+-------------------------------------+--------------+-----------+----------+-----------------------------+
А кто такой placeholder@altlinux.org? Прокладка между багзиллой и стулом? )
Hi! Я думаю, можно создать какой-нибудь apt-conf-unpriv, в котором упаковать куда-нибудь в /etc/apt.conf.d/ файл с примерно следующим содержимым: RPM::Options "--excludepath /proc --excludepath /sys" и всем остальным, что нужно для успешной отработки обновления filesystem в непривелигерованном контейнере
Как-то само рассосалось со свежей версией LXC.
И вот оно случилось опять при переезде на usrmerge: E: Some errors occurred while running transaction [root@host ~]# apt-get dist-upgrade Reading Package Lists... Done Building Dependency Tree... Done You might want to run `install --fix-broken' to correct these. The following packages have unmet dependencies: systemd: Conflicts: filesystem (< 3) systemd-sysvinit: Conflicts: filesystem (< 3) udev: Conflicts: filesystem (< 3) E: Unmet dependencies. Try using --fix-broken. [root@host ~]# apt-get install --fix-broken Reading Package Lists... Done Building Dependency Tree... Done Correcting dependencies... Done The following extra packages will be installed: filesystem The following packages will be upgraded filesystem 1 upgraded, 0 newly installed, 0 removed and 2 not upgraded. Need to get 0B/22.3kB of archives. After unpacking 0B of additional disk space will be used. Do you want to continue? [Y/n] Committing changes... Preparing... #################################################################################################### [100%] Updating / installing... 1: filesystem-3.1-alt1 #################################################################################################### [ 50%] error: unpacking of archive failed on file /proc: cpio: chown error: filesystem-3.1-alt1.x86_64: install failed error: filesystem-2.3.18-alt1.x86_64: erase skipped E: Some errors occurred while running transaction