AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 567482
Accepted
Elliptical view
Elliptical view
Asked: 2020-02-14 12:14:39 +0800 CST2020-02-14 12:14:39 +0800 CST 2020-02-14 12:14:39 +0800 CST

apt-get ...“配置正在使用中。”?

  • 772

在一个非常普通的结尾sudo apt-get install ...,我看到一条“ Config is in use. ”行。

这是一个问题吗? 如果是这样,我该如何解决?

已搜索 apt“配置正在使用中”。但似乎找不到任何线索。我以前见过这个,但我只是在追赶它。

谢谢!:-)


GNU/Linux - Debian Buster 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.
apt
  • 1 1 个回答
  • 256 Views

1 个回答

  • Voted
  1. Best Answer
    Elliptical view
    2020-02-14T16:03:12+08:002020-02-14T16:03:12+08:00

    @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"; 
    #  };
    
    • 1

相关问题

  • 在发行版的不同版本中混合软件时要寻找什么?

  • 了解 apt 列表输出

  • 尝试安装 debian 软件包 npm,使 apt-get 删除 libssl-dev

  • 如何下载软件包而不是使用 apt-get 命令安装它?

  • /etc/apt/sources.list.d 比 /etc/apt/sources.list 有什么好处

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve