Error installing php5-pgsql on ubuntu

1

I have an Ubuntu 14.04.4 LTS server. PHP version: PHP 5.5.9-1ubuntu4.20 (cli) I want to install php5-pgsql, I use the following command:

sudo apt-get install php5-pgsql

I get the following error

  

Reading package lists ... Done   Building dependence 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.13.0-106-generic: Depends: linux-image-3.13.0-106-generic but it is not going to be installed    linux-image-generic: Depends: linux-image-3.13.0-106-generic but it is not going to be installed    php5-pgsql: Depends: php5-common (= 5.5.9 + dfsg-1ubuntu4.21) but 5.5.9 + dfsg-1ubuntu4.20 is to be installed   E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I've tried with:

sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade

But when I run sudo apt-get autoremove He tells me almost the same thing:

  

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.13.0-106-generic: Depends: linux-image-3.13.0-106-generic but it is not installed    linux-image-generic: Depends: linux-image-3.13.0-106-generic but it is not installed   E: Unmet dependencies. Try using -f.

When executing

sudo apt-get -f install
  

(Reading database ... 550803 files and directories currently installed.)   Preparing to unpack ... / linux-image-3.13.0-112-generic_3.13.0-112.159_amd64.deb ...   Done.
  Unpacking linux-image-3.13.0-112-generic (3.13.0-112.159) ...   dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-112-generic_3.13.0-112.159_amd64.deb (--unpack):    can not copy extracted data for './boot/vmlinuz-3.13.0-112-generic' to '/boot/vmlinuz-3.13.0-112-generic.dpkg-new': failed to write (No space left on device)
  No apport report written because the error message indicates a disk full error   Examining /etc/kernel/postrm.d.   run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-112-generic /boot/vmlinuz-3.13.0-112-generic   run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-112-generic /boot/vmlinuz-3.13.0-112-generic   Preparing to unpack ... / linux-image-3.13.0-106-generic_3.13.0-106.153_amd64.deb ...   Done.
  Unpacking linux-image-3.13.0-106-generic (3.13.0-106.153) ...   dpkg: error processing archive /var/cache/apt/archives/linux-image-3.13.0-106-generic_3.13.0-106.153_amd64.deb (--unpack):    can not copy extracted data for './boot/System.map-3.13.0-106-generic' to '/boot/System.map-3.13.0-106-generic.dpkg-new': failed to write (No space left on device)   No apport report written because the error message indicates a disk full error   dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)   Examining /etc/kernel/postrm.d.   run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-106-generic /boot/vmlinuz-3.13.0-106-generic   run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-106-generic /boot/vmlinuz-3.13.0-106-generic
  Errors were encountered while processing:    /var/cache/apt/archives/linux-image-3.13.0-112-generic_3.13.0-112.159_amd64.deb    /var/cache/apt/archives/linux-image-3.13.0-106-generic_3.13.0-106.153_amd64.deb   E: Sub-process / usr / bin / dpkg returned an error code (1)

    
asked by Gustavo Isidoro 22.03.2017 в 20:00
source

2 answers

1

The key is in the output of sudo apt-get -f install in a part comes out:

failed to write (No space left on device)
No apport report written because the error message indicates a disk full error 

This indicates that you have no space left on the disk (confirm with df -h ). I would recommend you use baobab to see which folders have the most information, bleachbit is also a good option to erase junk from disk.

    
answered by 23.03.2017 / 14:10
source
1

The same error gives you the solution:

  

You might want to run 'apt-get -f install' to correct these.

That translated would be something like:

  

You must run / run 'apt-get -f install' to correct the errors.

    
answered by 22.03.2017 в 20:03