在使用apt-get安装报错:To continue type in the phrase 'Yes, do as I say!' ?] 解决方法

本文详细介绍了在使用APT-get安装软件包时可能遇到的一个警告信息,该信息提示某些核心包将被删除。文章提供了解决方案,即直接输入'Yes,doasIsay!'来继续操作。同时,博主提醒读者在进行此类操作前应确保完全理解其含义。

在使用apt-get安装软件包时可能会出现类似如下错误:

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  sysvinit
26 upgraded, 63 newly installed, 6 to remove and 292 not upgraded.
Need to get 14.3 MB/15.0 MB of archives.
After this operation, 21.1 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
 ?] 
Abort.

解决方法:

直接输入:

Yes, do as I say!

即可。



博主所有文章已转自私人博客 Joe 的个人博客,谢谢关注!

root@f85b7a2b931f:/# apt-get install zlib1g:i386 Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: autopoint autotools-dev binutils-common cmake-data distro-info-data gcc-4.9-base gettext-base git-man gnupg-l10n icu-devtools lib32asan4 lib32atomic1 lib32cilkrts5 lib32gcc-7-dev lib32gcc1 lib32gomp1 lib32itm1 lib32mpx2 lib32quadmath0 lib32stdc++-7-dev lib32stdc++6 lib32ubsan0 libapr1 libasan1 libasan4 libasn1-8-heimdal libassuan0 libatomic1 libc6-dev-i386 libc6-dev-x32 libc6-x32 libcap2 libcc1-0 libcilkrts5 libdbus-1-3 libedit2 libev-dev libev4 libevent-core-2.1-6 libevent-extra-2.1-6 libevent-pthreads-2.1-6 libexpat1 libexpat1-dev libgc1c2 libgcc-4.9-dev libgcc-7-dev libgdbm-compat4 libgdbm5 libglib2.0-data libgomp1 libgraphite2-3 libgraphite2-dev libgssapi-krb5-2 libgssapi3-heimdal libhcrypto4-heimdal libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal libicu60 libisl19 libitm1 libjsoncpp1 libk5crypto3 libkeyutils1 libkrb5-26-heimdal libkrb5-3 libkrb5support0 libksba8 libldap-common liblsan0 liblua5.1-0 liblua5.2-0 libmagic-mgc libmnl0 libmpc3 libmpdec2 libmpfr4 libmpfr6 libmpx2 libnghttp2-14 libnpth0 libnspr4 libnss3 libobjc-7-dev libobjc4 libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libpipeline1 libpsl5 libpython2.7-minimal libquadmath0 libroken18-heimdal libsasl2-2 libsasl2-modules-db libstdc++-4.9-dev libstdc++-7-dev libtomcrypt1 libtommath1 libtsan0 libubsan0 libwind0-heimdal libwrap0 libx32asan4 libx32atomic1 libx32cilkrts5 libx32gcc-7-dev libx32gcc1 libx32gomp1 libx32itm1 libx32quadmath0 libx32stdc++-7-dev libx32stdc++6 libx32ubsan0 make mime-support pinentry-curses vim-common vim-runtime Use 'apt autoremove' to remove them. The following packages will be REMOVED: adduser alien apt apt-transport-https autoconf automake bc binutils binutils-x86-64-linux-gnu build-essential ca-certificates ccache clang-6.0 clang-tools-6.0 cmake cpp cpp-4.9 cpp-7 curl dash debconf debhelper debugedit dh-autoreconf dh-python dh-strip-nondeterminism dirmngr dpkg dpkg-dev dropbear-bin file flex g++ g++-4.9 g++-7 g++-7-multilib g++-multilib gamin gawk gcc gcc-4.9 gcc-7 gcc-7-multilib gcc-multilib gdb gettext gir1.2-glib-2.0 gir1.2-harfbuzz-0.0 git git-lfs gnupg gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm gpgv grep gzip init-system-helpers install-info intltool-debian iproute2 libaprutil1 libapt-pkg5.0 libarchive-zip-perl libarchive13 libbabeltrace1 libbinutils libclang-common-6.0-dev libclang1-6.0 libcroco3 libcurl3-gnutls libcurl4 libdigest-crc-perl libdpkg-perl libdw1 libelf1 liberror-perl libevent-dev libevent-openssl-2.1-6 libfile-stripnondeterminism-perl libfreetype6 libgamin0 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgnutls30 libharfbuzz-dev libharfbuzz-gobject0 libharfbuzz-icu0 libharfbuzz0b libicu-dev libicu-le-hb-dev libicu-le-hb0 libiculx60 libio-pty-perl libipc-run-perl libldap-2.4-2 libllvm6.0 liblua5.1-0-dev libmagic1 libpam-modules libpam-modules-bin libpam-runtime libpam0g libperl5.26 libpng16-16 libprotobuf10 libprotoc10 libpython-stdlib libpython2.7-stdlib libpython3-dev libpython3-stdlib libpython3.6 libpython3.6-dev libpython3.6-minimal libpython3.6-stdlib libpython3.7-minimal libpython3.7-stdlib libreadline-dev libreadline7 librpm8 librpmbuild8 librpmio8 librpmsign8 librtmp1 libserf-1-1 libssl-dev libssl1.0.0 libssl1.1 libsvn1 libtext-unidecode-perl libtimedate-perl libtool libwebsockets-dev libwebsockets8 libxml-libxml-perl libxml-namespacesupport-perl libxml-sax-base-perl libxml-sax-perl libxml2 libxml2-dev libxslt1-dev libxslt1.1 lighttpd locales login lsb-release lua5.1 man-db mlocate moreutils mount openssh-client openssh-server openssh-sftp-server openssl passwd perl perl-base perl-modules-5.26 pkg-config po-debconf procps protobuf-c-compiler python python-minimal python2.7 python2.7-minimal python3 python3-dev python3-distutils python3-lib2to3 python3-minimal python3-pkg-resources python3-setuptools python3.6 python3.6-dev python3.6-minimal python3.7 python3.7-minimal quilt readline-common rpm rpm-common rpm2cpio rsync sqlite3 ssh subversion sudo sysvinit-utils tex-common texinfo ucf util-linux uuid-runtime vim wget zlib1g zlib1g-dev The following NEW packages will be installed: zlib1g:i386 WARNING: The following essential packages will be removed. This should NOT be done unless you know exactly what you are doing! apt adduser (due to apt) gpgv (due to apt) libapt-pkg5.0 (due to apt) libgnutls30 (due to apt) dash dpkg (due to dash) zlib1g (due to dpkg) grep install-info (due to grep) gzip init-system-helpers perl-base (due to init-system-helpers) login libpam0g (due to login) libpam-runtime (due to login) libpam-modules (due to login) mount util-linux (due to mount) sysvinit-utils 0 upgraded, 1 newly installed, 206 to remove and 0 not upgraded. Need to get 52.3 kB of archives. After this operation, 1075 MB disk space will be freed. You are about to do something potentially harmful. To continue type in the phrase 'Yes, do as I say!' ?]
最新发布
12-31
评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值