apt-get ... "設定が使用中です。"?

apt-get ... "設定が使用中です。"?

とても普通の結末でsudo apt-get install ...私は」構成が使用中です。ワイヤー。

これは問題ですか? では、どうすれば解決できますか?

適切な「構成を使用中」を検索しました。しかし、これに対する手がかりは見つからないようです。以前見たことがありますが、ただ追いかけたかったです。

ありがとうございます! :-)


GNU/Linux - Debian バスター 10.2

$ uname 
Linux <hostname> 4.19.0-6-amd64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) x86_64 GNU/Linux

apt-get --version
apt 1.8.2 (amd64)
Supported modules:
*Ver: Standard .deb
*Pkg:  Debian dpkg interface (Priority 30)
 Pkg:  Debian APT solver interface (Priority -1000)
 Pkg:  Debian APT planner interface (Priority -1000)
 S.L: 'deb' Debian binary tree
 S.L: 'deb-src' Debian source tree
 Idx: Debian Source Index
 Idx: Debian Package Index
 Idx: Debian Translation Index
 Idx: Debian dpkg status file
 Idx: Debian deb file
 Idx: Debian dsc file
 Idx: Debian control file
 Idx: EDSP scenario file
 Idx: EIPP scenario file

実施例1

$ sudo apt-get install openssl libssl-dev libcurl4-openssl-dev zlib1g-dev libpng-dev libxml2-dev libjson-c-dev libbz2-dev libpcre3-dev ncurses-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses-dev' instead of 'ncurses-dev'
libbz2-dev is already the newest version (1.0.6-9.2~deb10u1).
libbz2-dev set to manually installed.
libpng-dev is already the newest version (1.6.36-6).
libxml2-dev is already the newest version (2.9.4+dfsg1-7+b3).
libxml2-dev set to manually installed.
libncurses-dev is already the newest version (6.1+20181013-2+deb10u2).
libncurses-dev set to manually installed.
libssl-dev is already the newest version (1.1.1d-0+deb10u2).
openssl is already the newest version (1.1.1d-0+deb10u2).
libpcre3-dev is already the newest version (2:8.39-12).
libpcre3-dev set to manually installed.
zlib1g-dev is already the newest version (1:1.2.11.dfsg-1).
zlib1g-dev set to manually installed.
The following packages were automatically installed and are no longer required:
  libcmis-0.5-5v5 libmhash2 librasqal3 librdf0 libxslt1-dev libyajl-dev
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  libcurl4-doc librtmp-dev
The following packages will be REMOVED:
  libcmis-dev libcurl4-gnutls-dev libraptor2-dev librasqal3-dev librdf0-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev libjson-c-dev
0 upgraded, 2 newly installed, 5 to remove and 4 not upgraded.
Need to get 458 kB of archives.
After this operation, 10.0 MB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://ftp.us.debian.org/debian buster/main amd64 libcurl4-openssl-dev amd64 7.64.0-4 [419 kB]
Get:2 http://ftp.us.debian.org/debian buster/main amd64 libjson-c-dev amd64 0.12.1+ds-2 [38.8 kB]
Fetched 458 kB in 1s (384 kB/s)          
(Reading database ... 552014 files and directories currently installed.)
Removing libcmis-dev (0.5.2-1) ...
Removing librdf0-dev (1.0.17-1.1+b1) ...
Removing librasqal3-dev (0.9.32-1+b1) ...
Removing libraptor2-dev (2.0.14-1+b1) ...
Removing libcurl4-gnutls-dev:amd64 (7.64.0-4) ...
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(Reading database ... 551802 files and directories currently installed.)
Preparing to unpack .../libcurl4-openssl-dev_7.64.0-4_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.64.0-4) ...
Selecting previously unselected package libjson-c-dev:amd64.
Preparing to unpack .../libjson-c-dev_0.12.1+ds-2_amd64.deb ...
Unpacking libjson-c-dev:amd64 (0.12.1+ds-2) ...
Setting up libjson-c-dev:amd64 (0.12.1+ds-2) ...
Setting up libcurl4-openssl-dev:amd64 (7.64.0-4) ...
Processing triggers for man-db (2.8.5-2) ...
Config is in use.

例2:

$ sudo apt autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libcmis-0.5-5v5 libmhash2 librasqal3 librdf0 libxslt1-dev libyajl-dev
0 upgraded, 0 newly installed, 6 to remove and 4 not upgraded.
After this operation, 5,343 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 551845 files and directories currently installed.)
Removing libcmis-0.5-5v5 (0.5.2-1) ...
Removing librdf0:amd64 (1.0.17-1.1+b1) ...
Removing librasqal3:amd64 (0.9.32-1+b1) ...
Removing libmhash2:amd64 (0.9.9.9-7+b1) ...
Removing libxslt1-dev:amd64 (1.1.32-2.2~deb10u1) ...
Removing libyajl-dev:amd64 (2.1.0-3) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Config is in use.

例 3 - ここに表示されない

$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version (12.6).
The following packages were automatically installed and are no longer required:
  libcmis-0.5-5v5 libmhash2 librasqal3 librdf0 libxslt1-dev libyajl-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

答え1

@JdeBPはこれが次のように関連していることを示唆しています。snapper(btrfsファイルシステム用の自動スナップショットユーティリティ)

最後に、以前のルートスナップショットをすべて削除しました。

# snapper -c root delete <first>-<lasts> #e.g. snapper -c root delete 7-945

少なくとも現在、これは問題を解決したようです。


/etc/defaults/snapper次の行が表示されます。

# if you want to disable snapshot per install/upgrade, then set "yes"
DISABLE_APT_SNAPSHOT="no"

自動aptスナップショット(apt操作の前後に発生する可能性があります)をオンまたはオフにします。

/etc/apt/apt.conf.d/80snapperには次のコードが含まれています。

  DPkg::Pre-Invoke  { "if [ -e /etc/default/snapper ]; then . /etc/default/snapper; fi; if [ -x /usr/bin/snapper ] && [ ! x$DISABLE_APT_SNAPSHOT = 'xyes' ] && [ -e /etc/snapper/configs/root ]; then rm -f /var/tmp/snapper-apt || true ; snapper create -d apt -c number -t pre -p > /var/tmp/snapper-apt || true ; snapper cleanup number || true ; fi"; };
  DPkg::Post-Invoke { "if [ -e /etc/default/snapper ]; then . /etc/default/snapper; fi; if [ -x /usr/bin/snapper ] && [ ! x$DISABLE_APT_SNAPSHOT = 'xyes' ] && [ -e /var/tmp/snapper-apt ]; then snapper create -d apt -c number -t post --pre-number=`cat /var/tmp/snapper-apt` || true ; snapper cleanup number || true ; fi"; };

..または再フォーマット

#if vi :set ts=8
#  DPkg::Pre-Invoke  { 
#       "
#       if [ -e /etc/default/snapper    ]; then . /etc/default/snapper; fi;     # Set environment variable:  DISABLE_APT_SNAPSHOT ="no"
#
#       if [ -x /usr/bin/snapper        ] && [ ! x$DISABLE_APT_SNAPSHOT = 'xyes' ] && [ -e /etc/snapper/configs/root ]; then 
#               rm -f                                            /var/tmp/snapper-apt           || true ; 
#               snapper create  -d apt  -c number  -t pre  -p  > /var/tmp/snapper-apt           || true ;       # -d dscp;  -c cleanup-algo;  -t type;  -p print#
#               snapper cleanup            number                                               || true ;       # trim old or excessive snapshots
#       fi"; 
#  };
#
#
#  DPkg::Post-Invoke { 
#       "
#       if [ -e /etc/default/snapper    ]; then . /etc/default/snapper; fi; 
#       if [ -x /usr/bin/snapper        ] && [ ! x$DISABLE_APT_SNAPSHOT = 'xyes' ] && [ -e /var/tmp/snapper-apt ]; then 
#               snapper create  -d apt  -c number  -t post               --pre-number=`cat /var/tmp/snapper-apt` || true ; 
#               snapper cleanup number                                                                           || true ; 
#       fi"; 
#  };

関連情報