Home >System Tutorial >LINUX >Methods and solutions to solve apt-get install error under ubuntu14.04

Methods and solutions to solve apt-get install error under ubuntu14.04

WBOY
WBOYforward
2024-01-04 09:58:491361browse

A few days ago I wanted to install redis-server under ubuntu server 14.04. As a result, after typing in the command, an error was reported. I did not retain the specific information. It probably meant that your disk space was full or something like that, and it also asked you to try to enter The following instructions

apt-get -f install

This command is used to correct errors in some software dependencies. After typing in, it appears: Disk space is full, writing failed,

Actually, this is not because you don’t have enough space, but because you have installed too many packages. You can manually clear some

First check what software we have currently installed

dpkg -l

If you don’t know which packages to delete, then delete a few packages that are rarely used

linux-image-generic-lts-quantal
linux-image-3.16.0-38-generic
还有一个linux-image-3.16.0-38-generic对应的extra的包(就是名字里面多了个extra),当时也一起删掉了

It should be noted here that 3.16.0-38 is the version corresponding to my Linux image. You can check the version you installed according to your list, and then delete it

dpkg -r packagename

Finally delete the corresponding configuration file

dpkg --purge linux-image-3.16.0-38-generic 

You can now upgrade the package information

apt-get -f install
apt-get autoremove

It will be OK to install the software after updating

The above is the detailed content of Methods and solutions to solve apt-get install error under ubuntu14.04. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:jb51.net. If there is any infringement, please contact admin@php.cn delete