简体   繁体   中英

How to solve unmet dependencies in ubuntu 14.04 while installing mysql-server

On Ubuntu 14.04, I got this error while running 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). 

Please help me to resolve this problem.

If I run df -m , it shows:

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

My /boot partition was full too just doing a plain old

sudo apt-get upgrade

This post ( How To Fix A Full /boot Partition on Linux ) helped me clear some of the obsolete linux images off it.

The following may not be directly relevant to you, but after some deletions, I did

sudo apt-get install -f
sudo apt-get upgrade

The output also suggested

sudo apt autoremove

Which also trimmed my /boot to 35% used.

Why don't you go on and try as is the apt-get says ? that may do the trick .. Connect your system to internet Open your terminal and type:

sudo apt-get update

let the system do its stuff then,

sudo apt-get -f install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM