Não é possível instalar pacotes após a atualização para o Ubuntu 16.04 [duplicado]

1

Meu servidor Ubuntu é executado em um VPS com 512mb de RAM. Eu atualizei de 14.04 para 16.04. Estou tentando instalar o phpmyadmin mas há algum erro:

~$ sudo apt-get install phpmyadmin
Reading package lists... Done
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-4.4.0-72-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

sudo apt-get autoremove:

$ sudo apt-get autoremove
Reading package lists... Done
 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-4.4.0-72-generic : Depends: linux-image-4.4.0-72-generic but it is not installed
linux-image-generic : Depends: linux-image-4.4.0-72-generic but it is not    installed
E: Unmet dependencies. Try using -f.

sudo purge-old-kernels:

 $ sudo purge-old-kernels
Reading package lists... Done
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-110-generic : Depends: linux-image-3.13.0-110-generic but it is not going to be installed
linux-image-extra-4.4.0-64-generic : Depends: linux-image-4.4.0-64-generic  but it is not going to be installed
linux-image-extra-4.4.0-66-generic : Depends: linux-image-4.4.0-66-generic but it is not going to be installed
linux-image-extra-4.4.0-72-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed
linux-image-generic : Depends: linux-image-4.4.0-72-generic but it is not going to be installed
 E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

sudo apt-get -f install:

 $ sudo apt-get -f install
 Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
apache2-bin dbconfig-common dbconfig-mysql libapr1 libaprutil1 libaprutil1-   dbd-sqlite3 libaprutil1-ldap libicu52 libjs-sphinxdoc libjs-underscore    libmysqlclient18 libzip4
  linux-headers-3.13.0-110 linux-headers-3.13.0-110-generic linux-headers- 4.4.0-64 linux-headers-4.4.0-64-generic linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic
  linux-image-3.13.0-110-generic linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic linux-image-extra-3.13.0-110-generic linux-image-extra-4.4.0-64-generic
  linux-image-extra-4.4.0-66-generic php-phpseclib php-tcpdf
  Use 'sudo apt autoremove' to remove them.
 The following additional packages will be installed:
  linux-image-4.4.0-72-generic
Suggested packages:
 fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools
 The following NEW packages will be installed:
 linux-image-4.4.0-72-generic
0 upgraded, 1 newly installed, 0 to remove and 54 not upgraded.
4 not fully installed or removed.
Need to get 0 B/21.8 MB of archives.
After this operation, 66.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 230179 files and directories currently installed.)
Preparing to unpack .../linux-image-4.4.0-72-generic_4.4.0-72.93_amd64.deb ...
Done.
Unpacking linux-image-4.4.0-72-generic (4.4.0-72.93) ...
dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-72-  generic_4.4.0-72.93_amd64.deb (--unpack):
 cannot copy extracted data for './boot/vmlinuz-4.4.0-72-generic' to '/boot  /vmlinuz-4.4.0-72-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 4.4.0-72-generic    /boot/vmlinuz-4.4.0-72-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-72-generic /boot/vmlinuz-4.4.0-72-generic
Errors were encountered while processing:
 /var/cache/apt/archives/linux-image-4.4.0-72-generic_4.4.0-72.93_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

df -ah:

    $ df -ah
Filesystem                   Size  Used Avail Use% Mounted on
sysfs                           0     0     0    - /sys
proc                            0     0     0    - /proc
udev                         226M     0  226M   0% /dev
devpts                          0     0     0    - /dev/pts
tmpfs                         49M  2.5M   47M   6% /run
/dev/mapper/ubuntu--vg-root   19G  6.5G   12G  37% /
securityfs                      0     0     0    - /sys/kernel/security
tmpfs                        245M     0  245M   0% /dev/shm
tmpfs                        5.0M     0  5.0M   0% /run/lock
tmpfs                        245M     0  245M   0% /sys/fs/cgroup
cgroup                          0     0     0    - /sys/fs/cgroup/systemd
pstore                          0     0     0    - /sys/fs/pstore
cgroup                          0     0     0    - /sys/fs/cgroup/blkio
cgroup                          0     0     0    - /sys/fs/cgroup/net_cls,net_prio
cgroup                          0     0     0    - /sys/fs/cgroup/cpuset
cgroup                          0     0     0    - /sys/fs/cgroup/devices
cgroup                          0     0     0    - /sys/fs/cgroup/cpu,cpuacct
cgroup                          0     0     0    - /sys/fs/cgroup/hugetlb
cgroup                          0     0     0    - /sys/fs/cgroup/freezer
cgroup                          0     0     0    - /sys/fs/cgroup/perf_event
cgroup                          0     0     0    - /sys/fs/cgroup/memory
cgroup                          0     0     0    - /sys/fs/cgroup/pids
systemd-1                       -     -     -    - /proc/sys/fs/binfmt_misc
fusectl                         0     0     0    - /sys/fs/fuse/connections
mqueue                          0     0     0    - /dev/mqueue
debugfs                         0     0     0    - /sys/kernel/debug
hugetlbfs                       0     0     0    - /dev/hugepages
/dev/vda1                    236M  229M     0 100% /boot
cgmfs                        100K     0  100K   0% /run/cgmanager/fs
tmpfs                         49M     0   49M   0% /run/user/1000
binfmt_misc                     0     0     0    - /proc/sys/fs/binfmt_misc
pishva2005@parslet:~$ 

Eu não sei se está boot cheio ou algo mais causando o problema.

    
por alex 12.04.2017 / 15:40

1 resposta

0

O comando apt-get não funcionará corretamente porque sua partição / boot atingiu sua capacidade total. O que provavelmente aconteceu foi que alguma atualização do kernel não foi totalmente executada e, como resultado, o apt-get está preso e permanecerá em um estado congelado até você liberar algum espaço em / boot. Descubra as versões do kernel instaladas por:

dpkg --list 'linux-image*'

Verifique a versão atual que está sendo usada

uname -r

Remova as instalações do kernel que você não precisa mais

sudo apt-get remove linux-image-version

Substitua a versão pela versão do kernel. Depois disso

sudo apt-get autoremove

sudo update-grub

E finalmente atualize o grub.

    
por Noisy_Botnet 12.04.2017 / 16:13