allaf
July 28th, 2018, 12:43 AM
Hi everyone,
Out of nowhere my dpkg system broke on my Ubuntu 18.04.1 LTS. I need help I can't figure out how to fix this.
root@xx:/home/alex# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libxss1:i386 linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic linux-modules-extra-4.15.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 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.178ubuntu2.3) ...
git: 'LC_CTYPE=en_US.UTF-8' is not a git command. See 'git --help'.
dpkg: error processing package keyboard-configuration (--configure):
installed keyboard-configuration package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of console-setup-linux:
console-setup-linux depends on keyboard-configuration (= 1.178ubuntu2.3); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup:
console-setup depends on console-setup-linux | console-setup-freebsd | hurd; however:
Package console-setup-linux is not configured yet.
Package console-setup-freebsd is not installed.
Package hurd is not installed.
console-setup depends on keyboard-configuration (= 1.178ubuntu2.3); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
keyboard-configuration
console-setup-linux
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I try to reinstall it I get :
dpkg keyboard-configuration broken
root@xxxx:/home/alex# apt-get install --reinstall keyboard-configuration
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libxss1:i386 linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic linux-modules-extra-4.15.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for keyboard-configuration:amd64
Here is my file :
root@xxxx:/home/alex# cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT="azerty"
XKBOPTIONS=""
BACKSPACE="guess"
I already had that weird error trying to update the distribution and had to erase everything... Reminds me of windows
Thanks for your help.
Out of nowhere my dpkg system broke on my Ubuntu 18.04.1 LTS. I need help I can't figure out how to fix this.
root@xx:/home/alex# apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
libxss1:i386 linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic linux-modules-extra-4.15.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 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.178ubuntu2.3) ...
git: 'LC_CTYPE=en_US.UTF-8' is not a git command. See 'git --help'.
dpkg: error processing package keyboard-configuration (--configure):
installed keyboard-configuration package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of console-setup-linux:
console-setup-linux depends on keyboard-configuration (= 1.178ubuntu2.3); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup-linux (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of console-setup:
console-setup depends on console-setup-linux | console-setup-freebsd | hurd; however:
Package console-setup-linux is not configured yet.
Package console-setup-freebsd is not installed.
Package hurd is not installed.
console-setup depends on keyboard-configuration (= 1.178ubuntu2.3); however:
Package keyboard-configuration is not configured yet.
dpkg: error processing package console-setup (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
keyboard-configuration
console-setup-linux
console-setup
E: Sub-process /usr/bin/dpkg returned an error code (1)
If I try to reinstall it I get :
dpkg keyboard-configuration broken
root@xxxx:/home/alex# apt-get install --reinstall keyboard-configuration
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libxss1:i386 linux-headers-4.15.0-23 linux-headers-4.15.0-23-generic linux-image-4.15.0-23-generic linux-modules-4.15.0-23-generic linux-modules-extra-4.15.0-23-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for keyboard-configuration:amd64
Here is my file :
root@xxxx:/home/alex# cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE
# Consult the keyboard(5) manual page.
XKBMODEL="pc105"
XKBLAYOUT="fr"
XKBVARIANT="azerty"
XKBOPTIONS=""
BACKSPACE="guess"
I already had that weird error trying to update the distribution and had to erase everything... Reminds me of windows
Thanks for your help.