Home > System Tutorial > LINUX > body text

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

WBOY
Release: 2024-01-04 09:58:49
forward
1295 people have browsed it

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
Copy after login

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
Copy after login
还有一个linux-image-3.16.0-38-generic对应的extra的包(就是名字里面多了个extra),当时也一起删掉了
Copy after login

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
Copy after login

Finally delete the corresponding configuration file

dpkg --purge linux-image-3.16.0-38-generic 
Copy after login

You can now upgrade the package information

apt-get -f install
apt-get autoremove
Copy after login

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!