首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当键入Y时,我的命令被中止

当键入Y时,我的命令被中止
EN

Ask Ubuntu用户
提问于 2020-11-30 14:16:29
回答 1查看 192关注 0票数 0

伙计们,我对这一切很陌生,所以请耐心点。我什么都试过了,从Y到Y,是的。再试也没用,因为我试了30次。

代码语言:javascript
复制
jan@Jan-Network:~$ sudo apt-get install linux-headers-generic build-essential
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dpkg-dev fakeroot g++ g++-7 gcc gcc-7 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4 libc-dev-bin
  libc6-dev libcilkrts5 libfakeroot libgcc-7-dev libitm1 libmpx2 libquadmath0 libstdc++-7-dev libubsan0 linux-generic
  linux-headers-4.15.0-124 linux-headers-4.15.0-124-generic linux-image-4.15.0-124-generic linux-image-generic linux-libc-dev
  linux-modules-4.15.0-124-generic linux-modules-extra-4.15.0-124-generic make manpages-dev
Suggested packages:
  debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg gcc-multilib autoconf automake libtool flex bison gcc-doc
  gcc-7-multilib gcc-7-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
  libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg glibc-doc libstdc++-7-doc fdutils linux-doc-4.15.0 | linux-source-4.15.0 linux-tools make-doc
Recommended packages:
  thermald
The following NEW packages will be installed:
  build-essential dpkg-dev fakeroot g++ g++-7 gcc gcc-7 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4
  libc-dev-bin libc6-dev libcilkrts5 libfakeroot libgcc-7-dev libitm1 libmpx2 libquadmath0 libstdc++-7-dev libubsan0
  linux-headers-4.15.0-124 linux-headers-4.15.0-124-generic linux-image-4.15.0-124-generic linux-libc-dev linux-modules-4.15.0-124-generic
  linux-modules-extra-4.15.0-124-generic make manpages-dev
The following packages will be upgraded:
  linux-generic linux-headers-generic linux-image-generic
3 upgraded, 29 newly installed, 0 to remove and 43 not upgraded.
Need to get 89.1 MB of archives.
After this operation, 363 MB of additional disk space will be used.
Do you want to continue? [Y/n] yes
Abort.
jan@Jan-Network:~$ 

这里也是

代码语言:javascript
复制
jan@Jan-Network:~$ sudo apt-get install build-essential linux-headers-$(uname -r) git
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.15.0-123-generic is already the newest version (4.15.0-123.126).
linux-headers-4.15.0-123-generic set to manually installed.
The following additional packages will be installed:
  dpkg-dev fakeroot g++ g++-7 gcc gcc-7 git-man libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan4
  libc-dev-bin libc6-dev libcilkrts5 liberror-perl libfakeroot libgcc-7-dev libitm1 libmpx2 libquadmath0 libstdc++-7-dev libubsan0
  linux-libc-dev make manpages-dev
Suggested packages:
  debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg gcc-multilib autoconf automake libtool flex bison gcc-doc
  gcc-7-multilib gcc-7-locales libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg
  libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs
  git-mediawiki git-svn glibc-doc libstdc++-7-doc make-doc
The following NEW packages will be installed:
  build-essential dpkg-dev fakeroot g++ g++-7 gcc gcc-7 git git-man libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl
  libasan4 libc-dev-bin libc6-dev libcilkrts5 liberror-perl libfakeroot libgcc-7-dev libitm1 libmpx2 libquadmath0 libstdc++-7-dev libubsan0
  linux-libc-dev make manpages-dev
0 upgraded, 27 newly installed, 0 to remove and 46 not upgraded.
Need to get 31.8 MB of archives.
After this operation, 148 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Abort.
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2020-11-30 14:25:09

尝尝这个。

代码语言:javascript
复制
sudo apt-get install  -y

-y标志表示是。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1296396

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档