我读了“apt-get install”什么时候会要求我确认是否继续?(2013年):
出现以下情况时出现提示:
- 将安装额外的软件包(除了您要求安装的软件包 - 例如依赖项)
- 必要的软件包将被删除。这里的 Essential 被定义为系统上必须始终可用且可用的最小功能集,即使包处于未配置(但未打包)状态时也是如此。使用 Essential 控制字段将软件包标记为系统必需的。
- 更改保留的包裹
然而,在我的 Linux Mint 20.2 上,我现在注意到apt
/apt-get
显示了删除非必需软件包和安装命令行提供的软件包的确认信息。与 2013 年相比,2021 年 apt 确认的当前要求是什么?
$ sudo apt remove python-docutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
python-docutils
0 upgraded, 0 newly installed, 1 to remove and 636 not upgraded.
After this operation, 1 814 kB disk space will be freed.
Do you want to continue? [Y/n] y
$ apt show python-docutils
Package: python-docutils
Version: 0.16+dfsg-2
Priority: optional
Section: universe/python
Origin: Ubuntu
Maintainer: Ubuntu Developers <[email protected]>
Original-Maintainer: Debian Python Modules Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1 814 kB
Provides: docutils
Depends: docutils-common (= 0.16+dfsg-2), python-roman, python2:any (<< 2.8), python2:any (>= 2.7~)
Recommends: docutils-doc (= 0.16+dfsg-2), libpaper-utils, python-pil, python-pygments
Suggests: fonts-linuxlibertine | ttf-linux-libertine, texlive-lang-french, texlive-latex-base, texlive-latex-recommended
Homepage: https://docutils.sourceforge.io/
Download-Size: 369 kB
APT-Manual-Installed: yes
# ------------ as apposed to e.g. grep:
$ apt show grep
Package: grep
Version: 3.4-1
Priority: required
Essential: yes
$ sudo apt-get install /media/alex/usb/LM_20.2/python-docutils/*.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'docutils-common' instead of '/media/alex/usb/LM_20.2/python-docutils/docutils-common_0.16+dfsg-2_all.deb'
Note, selecting 'docutils-doc' instead of '/media/alex/usb/LM_20.2/python-docutils/docutils-doc_0.16+dfsg-2_all.deb'
Note, selecting 'libpython2.7-minimal' instead of '/media/alex/usb/LM_20.2/python-docutils/libpython2.7-minimal_2.7.18-1~20.04.1_amd64.deb'
Note, selecting 'libpython2.7-stdlib' instead of '/media/alex/usb/LM_20.2/python-docutils/libpython2.7-stdlib_2.7.18-1~20.04.1_amd64.deb'
Note, selecting 'libpython2-stdlib' instead of '/media/alex/usb/LM_20.2/python-docutils/libpython2-stdlib_2.7.17-2ubuntu4_amd64.deb'
Note, selecting 'python2' instead of '/media/alex/usb/LM_20.2/python-docutils/python2_2.7.17-2ubuntu4_amd64.deb'
Note, selecting 'python2.7' instead of '/media/alex/usb/LM_20.2/python-docutils/python2.7_2.7.18-1~20.04.1_amd64.deb'
Note, selecting 'python2.7-minimal' instead of '/media/alex/usb/LM_20.2/python-docutils/python2.7-minimal_2.7.18-1~20.04.1_amd64.deb'
Note, selecting 'python2-minimal' instead of '/media/alex/usb/LM_20.2/python-docutils/python2-minimal_2.7.17-2ubuntu4_amd64.deb'
Note, selecting 'python-chardet' instead of '/media/alex/usb/LM_20.2/python-docutils/python-chardet_3.0.4-4build1_all.deb'
Note, selecting 'python-docutils' instead of '/media/alex/usb/LM_20.2/python-docutils/python-docutils_0.16+dfsg-2_all.deb'
Note, selecting 'python-olefile' instead of '/media/alex/usb/LM_20.2/python-docutils/python-olefile_0.46-2_all.deb'
Note, selecting 'python-pil' instead of '/media/alex/usb/LM_20.2/python-docutils/python-pil_6.2.1-3_amd64.deb'
Note, selecting 'python-pkg-resources' instead of '/media/alex/usb/LM_20.2/python-docutils/python-pkg-resources_44.0.0-2_all.deb'
Note, selecting 'python-pygments' instead of '/media/alex/usb/LM_20.2/python-docutils/python-pygments_2.3.1+dfsg-1ubuntu2.2_all.deb'
Note, selecting 'python-roman' instead of '/media/alex/usb/LM_20.2/python-docutils/python-roman_2.0.0-3build1_all.deb'
docutils-common is already the newest version (0.16+dfsg-2).
docutils-doc is already the newest version (0.16+dfsg-2).
libpython2-stdlib is already the newest version (2.7.17-2ubuntu4).
python-chardet is already the newest version (3.0.4-4build1).
python-olefile is already the newest version (0.46-2).
python-pil is already the newest version (6.2.1-3).
python-pkg-resources is already the newest version (44.0.0-2).
python-roman is already the newest version (2.0.0-3build1).
python2 is already the newest version (2.7.17-2ubuntu4).
python2-minimal is already the newest version (2.7.17-2ubuntu4).
libpython2.7-minimal is already the newest version (2.7.18-1~20.04.1).
libpython2.7-stdlib is already the newest version (2.7.18-1~20.04.1).
python-pygments is already the newest version (2.3.1+dfsg-1ubuntu2.2).
python2.7 is already the newest version (2.7.18-1~20.04.1).
python2.7-minimal is already the newest version (2.7.18-1~20.04.1).
Suggested packages:
fonts-linuxlibertine | ttf-linux-libertine texlive-lang-french texlive-latex-base texlive-latex-recommended
The following NEW packages will be installed:
python-docutils
0 upgraded, 1 newly installed, 0 to remove and 636 not upgraded.
Need to get 0 B/369 kB of archives.
After this operation, 1 814 kB of additional disk space will be used.
Do you want to continue? [Y/n] n