在Ubuntu 14.04上,运行sudo apt-get install mysql-server
时出现此错误:
Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: linux-image-extra-3.19.0-49-generic : Depends: linux-image-3.19.0-49-generic but it is not going to be installed linux-image-extra-3.19.0-51-generic : Depends: linux-image-3.19.0-51-generic but it is not going to be installed linux-image-extra-3.19.0-56-generic : Depends: linux-image-3.19.0-56-generic but it is not going to be installed linux-image-generic-lts-vivid : Depends: linux-image-3.19.0-56-generic but it is not going to be installed Recommends: thermald but it is not going to be installed mysql-server : Depends: mysql-server-5.5 but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
请帮我解决这个问题。
如果我运行df -m
,则会显示:
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/mapper/sampledomain--vg-root 1811898 15709 1704127 1% /
none 1 0 1 0% /sys/fs/cgroup
udev 32200 1 32200 1% /dev
tmpfs 6443 1 6442 1% /run
none 5 0 5 0% /run/lock
none 32211 0 32211 0% /run/shm
none 100 0 100 0% /run/user
/dev/sda1 236 227 0 100% /boot
答案 0 :(得分:0)
我的/启动分区也很满,只做一个普通的
sudo apt-get upgrade
这篇文章(How To Fix A Full /boot Partition on Linux)帮助我清除了一些过时的linux图像。
以下内容可能与您无直接关系,但经过一些删除后,我确实
sudo apt-get install -f
sudo apt-get upgrade
输出也提示
sudo apt autoremove
还将我的/ boot修剪为35%。
答案 1 :(得分:-1)
为什么不继续尝试apt-get说的?这可能会成功.. 将您的系统连接到互联网 打开终端并输入:
sudo apt-get update
让系统完成它的工作,
sudo apt-get -f install