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
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1080921
Accepted
JasonGenX
JasonGenX
Asked: 2018-10-05 07:51:38 +0800 CST2018-10-05 07:51:38 +0800 CST 2018-10-05 07:51:38 +0800 CST

mysql“卡住”到每次安装虽然我不想要它

  • 772

[Ubuntu 16.04]

我的机器上没有mysql运行,我不想要它。

我确实需要安装redis-server. 所以我这样做了:

 $ sudo apt-get install redis-server
    E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

所以我继续...

$ sudo dpkg --configure -a
Setting up linux-aws-headers-4.4.0-1055 (4.4.0-1055.64) ...
Setting up linux-image-4.4.0-1055-aws (4.4.0-1055.64) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-1055-aws /boot/vmlinuz-4.4.0-1055-aws
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-1055-aws /boot/vmlinuz-4.4.0-1055-aws
update-initramfs: Generating /boot/initrd.img-4.4.0-1055-aws
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-1055-aws /boot/vmlinuz-4.4.0-1055-aws
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-1055-aws /boot/vmlinuz-4.4.0-1055-aws
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-1055-aws /boot/vmlinuz-4.4.0-1055-aws
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.4.0-1055-aws
Found initrd image: /boot/initrd.img-4.4.0-1055-aws
Found linux image: /boot/vmlinuz-4.4.0-1054-aws
Found initrd image: /boot/initrd.img-4.4.0-1054-aws
Found linux image: /boot/vmlinuz-4.4.0-1052-aws
Found initrd image: /boot/initrd.img-4.4.0-1052-aws
Found linux image: /boot/vmlinuz-4.4.0-1049-aws
Found initrd image: /boot/initrd.img-4.4.0-1049-aws
Found linux image: /boot/vmlinuz-4.4.0-1048-aws
Found initrd image: /boot/initrd.img-4.4.0-1048-aws
Found linux image: /boot/vmlinuz-4.4.0-1047-aws
Found initrd image: /boot/initrd.img-4.4.0-1047-aws
Found linux image: /boot/vmlinuz-4.4.0-1044-aws
Found initrd image: /boot/initrd.img-4.4.0-1044-aws
Found linux image: /boot/vmlinuz-4.4.0-1043-aws
Found initrd image: /boot/initrd.img-4.4.0-1043-aws
Found linux image: /boot/vmlinuz-4.4.0-1041-aws
Found initrd image: /boot/initrd.img-4.4.0-1041-aws
Found linux image: /boot/vmlinuz-4.4.0-1039-aws
Found initrd image: /boot/initrd.img-4.4.0-1039-aws
Found linux image: /boot/vmlinuz-4.4.0-1038-aws
Found initrd image: /boot/initrd.img-4.4.0-1038-aws
Found linux image: /boot/vmlinuz-4.4.0-1035-aws
Found initrd image: /boot/initrd.img-4.4.0-1035-aws
Found linux image: /boot/vmlinuz-4.4.0-1022-aws
Found initrd image: /boot/initrd.img-4.4.0-1022-aws
done
Setting up linux-headers-4.4.0-1055-aws (4.4.0-1055.64) ...
Setting up linux-image-aws (4.4.0.1055.57) ...
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).

它就在此时停止了。必须CTRL-C退出它......

我又试了...

$ sudo apt-get install redis-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-aws-headers-4.4.0-1022 linux-aws-headers-4.4.0-1035 linux-aws-headers-4.4.0-1038 linux-aws-headers-4.4.0-1039 linux-aws-headers-4.4.0-1041 linux-aws-headers-4.4.0-1043
  linux-aws-headers-4.4.0-1044 linux-aws-headers-4.4.0-1047 linux-aws-headers-4.4.0-1048 linux-aws-headers-4.4.0-1049 linux-aws-headers-4.4.0-1052 linux-headers-4.4.0-1022-aws
  linux-headers-4.4.0-1035-aws linux-headers-4.4.0-1038-aws linux-headers-4.4.0-1039-aws linux-headers-4.4.0-1041-aws linux-headers-4.4.0-1043-aws linux-headers-4.4.0-1044-aws
  linux-headers-4.4.0-1047-aws linux-headers-4.4.0-1048-aws linux-headers-4.4.0-1049-aws linux-headers-4.4.0-1052-aws linux-image-4.4.0-1022-aws linux-image-4.4.0-1035-aws
  linux-image-4.4.0-1038-aws linux-image-4.4.0-1039-aws linux-image-4.4.0-1041-aws linux-image-4.4.0-1043-aws linux-image-4.4.0-1044-aws linux-image-4.4.0-1047-aws
  linux-image-4.4.0-1048-aws linux-image-4.4.0-1049-aws linux-image-4.4.0-1052-aws newrelic-daemon newrelic-php5-common
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  redis-server
0 upgraded, 1 newly installed, 0 to remove and 113 not upgraded.
2 not fully installed or removed.
Need to get 343 kB of archives.
After this operation, 918 kB of additional disk space will be used.
Get:1 http://us-east-2.ec2.archive.ubuntu.com/ubuntu xenial/universe amd64 redis-server amd64 2:3.0.6-1 [343 kB]
Fetched 343 kB in 0s (1,595 kB/s)    
Selecting previously unselected package redis-server.
(Reading database ... 357711 files and directories currently installed.)
Preparing to unpack .../redis-server_2%3a3.0.6-1_amd64.deb ...
Unpacking redis-server (2:3.0.6-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up mysql-server-5.7 (5.7.22-0ubuntu0.16.04.1) ...
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).

从那一刻起,它就冻结了,永远不会结束。它就在此时停止了。必须CTRL-C退出它......

我该如何解开这个烂摊子?

apt mysql 16.04
  • 1 1 个回答
  • 151 Views

1 个回答

  • Voted
  1. Best Answer
    Daniele Santi
    2018-10-05T08:01:20+08:002018-10-05T08:01:20+08:00

    当你这样做时sudo apt-get install redis-server,apt-get就是在告诉你

    [snip]
    2 not fully installed or removed.
    [snip]
    

    这意味着有包处于“损坏”状态,既没有安装也没有删除。

    mysql-server-5.7就是其中之一,这就是它不断“弹出”的原因。

    如果你坚持Ctrl+ Cout of it,这些错误就不会消失。

    最简单的事情就是摆脱它:

    sudo apt-get purge mysql-server-5.7
    

    万一apt-get抱怨,就让它dpkg --configure -a做它的事(不要按Ctrl+ C,让它完成!),然后mysql-server-5.7用上面的命令删除。

    • 3

相关问题

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 如何将 MySQL 数据文件移动到不同的分区?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

Sidebar

Stats

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

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

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

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve