“dpkg: erro processando a configuração do teclado do pacote” depois do-release-upgrade para 16.04.4 LTS

0

Eu executei sudo do-release-upgrade de um 16.04.3 LTS e agora:

sudo apt-get upgrade   
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up keyboard-configuration (1.108ubuntu15.3) ...
/var/lib/dpkg/info/keyboard-configuration.postinst: line 103: 
/etc/default/keyboard: Permission denied
dpkg: error processing package keyboard-configuration (--configure):
 subprocess installed post-installation script returned error exit 
status 1
Errors were encountered while processing:
 keyboard-configuration
E: Sub-process /usr/bin/dpkg returned an error code (1)

Estou completamente preso, como posso resolvê-lo?

    
por lrkwz 27.02.2018 / 23:55

1 resposta

0

O problema era ter /etc/default/keyboard não gravável. Permissões onde ok

$ ls -l /etc/default/keyboard                            
-rw-r--r-- 1 root root 88 feb 27 23:05 /etc/default/keyboard

mas os atributos de arquivo estão errados:

$ lsattr /etc/default/keyboard
----i--------e-- /etc/default/keyboard

O (i) attrb significa imutável . Veja também link .

Solução:

$ chattr -i /etc/default/keyboard
$ apt remove keyboard-configuration
$ apt install keyboard-configuration
$ apt upgrade
    
por lrkwz 28.02.2018 / 10:49