Problemas con apt-get debido a la actualización -- apt campo con kernel campo con updates campo con dpkg camp askubuntu Relacionados El problema

Problems with apt-get because of update


1
vote

problema

Español

Hace un día de actualización de Ubuntu y no pude iniciar sesión en mi computadora debido a eso, así que eliminé erróneamente en el kernel la versión de la actualización, pero pude continuar trabajando.

El problema ahora es que cada vez que utilizo el comando abcdefghijklmnapt-get , finaliza con estas líneas (por ejemplo, tratando de instalar Ruby):

  Reading package lists... Done Building dependency tree        Reading state information... Done ruby is already the newest version (1:2.5.1). The following packages were automatically installed and are no longer required:   command-not-found-data gcc-5-base gir1.2-gst-plugins-base-1.0   gir1.2-gstreamer-1.0 gir1.2-rb-3.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0   gyp libdmapsharing-3.0-2 libgpod-common libgpod4 libgsoap-2.8.60   libhttp-parser2.7.1 libjs-async libjs-inherits libjs-node-uuid libnetplan0   libsgutils2-2 libssl1.0-dev libuv1 libuv1-dev libvncserver1 libxatracker2   libxnvctrl0 libxvmc1 linux-hwe-5.4-headers-5.4.0-42   linux-hwe-5.4-headers-5.4.0-56 linux-hwe-5.4-headers-5.4.0-58   linux-hwe-5.4-headers-5.4.0-59 linux-hwe-5.4-headers-5.4.0-62 node-abbrev   node-ansi node-ansi-color-table node-archy node-async node-balanced-match   node-block-stream node-brace-expansion node-combined-stream node-concat-map   node-cookie-jar node-delayed-stream node-forever-agent node-form-data   node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git   node-glob node-graceful-fs node-gyp node-hosted-git-info node-inflight   node-inherits node-ini node-isexe node-json-stringify-safe node-lockfile   node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream   node-node-uuid node-nopt node-npmlog node-once node-osenv   node-path-is-absolute node-pseudomap node-qs node-read node-request   node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct   node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent   node-underscore node-validate-npm-package-license node-which node-wrappy   node-yallist nodejs-doc pkg-config Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.                                                     Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1)   

¿Cómo podría arreglarlo? (Tal vez sea un tonto, pero no soy un profesional usando Ubuntu, lo siento, lo siento, por adelantado).

Editar:

Después de ejecutar sudo apt autoremove :

  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.           Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1)   

Después de ejecutar sudo apt purge

  ABCDEFGHIJKLMNABCDEFGHIJKLMN5   

Después de ejecutar sudo apt-get -f install

  Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.           Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1)   

Después de ejecutar sudo dpkg-reconfigure linux-image-5.4.0-65-generic

  ABCDEFGHIJKLMNABCDEFGHIJKLMN9   

Después de ejecutar Reading package lists... Done Building dependency tree Reading state information... Done ruby is already the newest version (1:2.5.1). The following packages were automatically installed and are no longer required: command-not-found-data gcc-5-base gir1.2-gst-plugins-base-1.0 gir1.2-gstreamer-1.0 gir1.2-rb-3.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0 gyp libdmapsharing-3.0-2 libgpod-common libgpod4 libgsoap-2.8.60 libhttp-parser2.7.1 libjs-async libjs-inherits libjs-node-uuid libnetplan0 libsgutils2-2 libssl1.0-dev libuv1 libuv1-dev libvncserver1 libxatracker2 libxnvctrl0 libxvmc1 linux-hwe-5.4-headers-5.4.0-42 linux-hwe-5.4-headers-5.4.0-56 linux-hwe-5.4-headers-5.4.0-58 linux-hwe-5.4-headers-5.4.0-59 linux-hwe-5.4-headers-5.4.0-62 node-abbrev node-ansi node-ansi-color-table node-archy node-async node-balanced-match node-block-stream node-brace-expansion node-combined-stream node-concat-map node-cookie-jar node-delayed-stream node-forever-agent node-form-data node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git node-glob node-graceful-fs node-gyp node-hosted-git-info node-inflight node-inherits node-ini node-isexe node-json-stringify-safe node-lockfile node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream node-node-uuid node-nopt node-npmlog node-once node-osenv node-path-is-absolute node-pseudomap node-qs node-read node-request node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent node-underscore node-validate-npm-package-license node-which node-wrappy node-yallist nodejs-doc pkg-config Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms: * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File: does not exist. ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure): installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04: linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however: Package linux-headers-5.4.0-65-generic is not configured yet. dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04: linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however: Package linux-headers-generic-hwe-18.04 is not configured yet. dpkg: error processing package linux-generic-hwe-18.04 (--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. Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms: * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File: does not exist. ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure): installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already Errors were encountered while processing: linux-headers-5.4.0-65-generic linux-headers-generic-hwe-18.04 linux-generic-hwe-18.04 linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 0 no hay salida

Original en ingles

I had an Ubuntu update days ago and I wasn't able to login my computer because of that, so I wrongly deleted in the kernel the version of the update, but I was able to continue working.

The problem now is that each time I use the apt-get command, it finishes with these lines (for example, trying to install ruby):

Reading package lists... Done Building dependency tree        Reading state information... Done ruby is already the newest version (1:2.5.1). The following packages were automatically installed and are no longer required:   command-not-found-data gcc-5-base gir1.2-gst-plugins-base-1.0   gir1.2-gstreamer-1.0 gir1.2-rb-3.0 gir1.2-totem-1.0 gir1.2-totemplparser-1.0   gyp libdmapsharing-3.0-2 libgpod-common libgpod4 libgsoap-2.8.60   libhttp-parser2.7.1 libjs-async libjs-inherits libjs-node-uuid libnetplan0   libsgutils2-2 libssl1.0-dev libuv1 libuv1-dev libvncserver1 libxatracker2   libxnvctrl0 libxvmc1 linux-hwe-5.4-headers-5.4.0-42   linux-hwe-5.4-headers-5.4.0-56 linux-hwe-5.4-headers-5.4.0-58   linux-hwe-5.4-headers-5.4.0-59 linux-hwe-5.4-headers-5.4.0-62 node-abbrev   node-ansi node-ansi-color-table node-archy node-async node-balanced-match   node-block-stream node-brace-expansion node-combined-stream node-concat-map   node-cookie-jar node-delayed-stream node-forever-agent node-form-data   node-fs.realpath node-fstream node-fstream-ignore node-github-url-from-git   node-glob node-graceful-fs node-gyp node-hosted-git-info node-inflight   node-inherits node-ini node-isexe node-json-stringify-safe node-lockfile   node-lru-cache node-mime node-minimatch node-mkdirp node-mute-stream   node-node-uuid node-nopt node-npmlog node-once node-osenv   node-path-is-absolute node-pseudomap node-qs node-read node-request   node-retry node-rimraf node-semver node-sha node-slide node-spdx-correct   node-spdx-expression-parse node-spdx-license-ids node-tar node-tunnel-agent   node-underscore node-validate-npm-package-license node-which node-wrappy   node-yallist nodejs-doc pkg-config Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.                                                     Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 

How could I fix it? (Maybe it's a dumb thing, but I'm not a pro using Ubuntu, so sorry if in advance).

EDIT:

After running sudo apt autoremove:

Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.           Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 

After running sudo apt purge

Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.           Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 

After running sudo apt-get -f install

Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 4 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... Setting up linux-headers-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/header_postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 4 dpkg: error processing package linux-headers-5.4.0-65-generic (--configure):  installed linux-headers-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of linux-headers-generic-hwe-18.04:  linux-headers-generic-hwe-18.04 depends on linux-headers-5.4.0-65-generic; however:   Package linux-headers-5.4.0-65-generic is not configured yet.  dpkg: error processing package linux-headers-generic-hwe-18.04 (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of linux-generic-hwe-18.04:  linux-generic-hwe-18.04 depends on linux-headers-generic-hwe-18.04 (= 5.4.0.65.73~18.04.60); however:   Package linux-headers-generic-hwe-18.04 is not configured yet.  dpkg: error processing package linux-generic-hwe-18.04 (--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.           Processing triggers for linux-image-5.4.0-65-generic (5.4.0-65.73~18.04.1) ... /etc/kernel/postinst.d/dkms:  * dkms: running auto installation service for kernel 5.4.0-65-generic Error! Could not locate dkms.conf file. File:  does not exist.    ...fail! run-parts: /etc/kernel/postinst.d/dkms exited with return code 4 dpkg: error processing package linux-image-5.4.0-65-generic (--configure):  installed linux-image-5.4.0-65-generic package post-installation script subprocess returned error exit status 1 No apport report written because MaxReports is reached already                                                               Errors were encountered while processing:  linux-headers-5.4.0-65-generic  linux-headers-generic-hwe-18.04  linux-generic-hwe-18.04  linux-image-5.4.0-65-generic E: Sub-process /usr/bin/dpkg returned an error code (1) 

After running sudo dpkg-reconfigure linux-image-5.4.0-65-generic

/usr/sbin/dpkg-reconfigure: linux-image-5.4.0-65-generic is broken or not fully installed 

After running sudo dpkg-reconfigure --force linux-image-5.4.0-65-generic there is no output

           
   
   

Lista de respuestas

0
 
vote

con apt-get lo que significa apt-get install ?

Primero, la salida le indica que Ruby ya está instalada.

Luego, enumera los paquetes no necesarios y le indica al final cómo puede eliminarlos sudo apt autoremove Sugeriría su carrera después sudo apt purge también

En el segundo grupo de mensajes de error dpkg (que es básicamente lo que invoca el programa APT) le indica a) que hay archivos de configuración no existentes y b) que tiene problemas de dependencias Así que intentaría ABCDEFGHIJKLMNABCDEFGHIJKLMN4 (-F STEHT Für Fix-Falta)

probablemente los errores de configuración aún permanecen, así que intentaría reconfigurar ABCDEFGHIJKLMNABCDEFGHIJKLMN5 y lo mismo para Linux-Headers-Genic-HWE-18.04 Linux-Generic-HWE-18.04 Linux-image-5.4.0-65-genérico

Si obtiene un error o si no resuelve el problema, intente ABCDEFGHIJKLMNABCDEFGHIJKLMN6 , etc. Sin embargo, tenga en cuenta que no estoy seguro de este último comando. Creo que no debería ser peligroso, pero no estoy 100% seguro.

¡Gracias por darme la oportunidad de aprenderme!

sidenote ABCDEFGHIJKLMNABCDEFGHIJKLMN7 Y ABCDEFGHIJKLMNABCDEFGHIJKLMN8 es lo mismo, pero apt es más fácil de usar

Pro-Begin TIPP: Trate de usar man yourprogram a menudo o mejor apt-get install0 . Luego, desplazarse con "n" a las diferentes instancias donde se ha encontrado la expresión buscada (y Mayús + N para volver un término de búsqueda) Ejemplo: ABCDEFGHIJKLMNABCDEFGHIJKLMN11 Búsquedas en el manual del Programa Menos para la búsqueda -Pattern "-p". Esto funciona con la bandera de ayuda también. egs. ABCDEFGHIJKLMNABCDEFGHIJKLMN12 . Mayormente, y, o -H, solo proporciona una ayuda más áspera que el hombre (UAL), pero a veces no hay manual. ABCDEFGHIJKLMNABCDEFGHIJKLMN13 TUBOS The OutPouncia del primer comando al segundo comando. Tan menos búsquedas a través de la página de todo el hombre y comienza su salida en la primera ocurrencia del patrón de búsqueda.

con apt-get install4 su búsqueda cada página para un patrón de búsqueda (lento!) Con apt-get install5 Usted busca en la descripción del programa para un El patrón y el resultado son los nombres del programa.

PROPIETE FINAL PRO-BREOMNER: Instale TLDR (demasiado tiempo no leído) con apt-get install6 porque con apt-get install7 Usted obtiene muchos de los usos más utilizados de un programa y a menudo inspiración.

y finalmente: !! Repite el último comando. Así que con sudo !! Puede repetir un comando donde se olvidó de poner sudo;)

 

with apt-get you mean apt-get install?

first, the output tells you, that ruby is already installed.

then it lists not required packages and tells you at the end how you can remove them sudo apt autoremove I'd suggest your run afterwards sudo apt purge as well

in the second bunch of error messages dpkg (which is basically the programm apt invokes) tells you a) that there are non existing config files and b) that you have dependencies problems so I would try to sudo apt-get -f install (-f steht fxc3xbcr fix-missing)

probably the config errors still remain, so I would try to reconfigure sudo dpkg-reconfigure linux-image-5.4.0-65-generic and the same for linux-headers-generic-hwe-18.04 linux-generic-hwe-18.04 linux-image-5.4.0-65-generic

if you get an error or if it doesnt solve the problem try sudo dpkg-reconfigure --force linux-image-5.4.0-65-generic etc. However, be aware, that I am not certain about this last command. I think it shouldn't be dangerous, but I am not 100% sure.

Thank you for giving me the opportunity to learn myself!

sidenote apt and apt-get is practically the same, but apt is more user friendly

pro-beginner tipp: try to use man yourprogram often or better man yourprogramm | less -p "specific function inside the program". then scroll with "n" to the different instances where the searched expression has been found (and shift+n to go back one search term) example: man less | less -p "-p" searches in the manual of the programm less for the search-pattern "-p". this works with the help flag as well. egs. less --help | less -p "-p". mostly --help or -h provides only a rougher help than the man(ual) but sometimes there is no manual. | pipes the outpout of the first command to te second command. so less searches via -p the whole man page and starts its output at the first occurance of the searche pattern.

with man -K "Search-Pattern" your search every man page for a search-pattern (slow!) with apropos "search-pattern" you search in the programm description for a pattern and the result is programm names.

final pro-beginner tip: install tldr (too long didnt read) with sudo apt install tldr because with tldr programm you get a lot of the most used use-cases of a programm and often inspiration.

and finally: !! repeats the last command. so with sudo !! you can repeat a command where you forgot to put sudo ;)

 
 
         
         

Relacionados problema

4  ¿Cómo configurar el estado de selección del paquete al estado actual?  ( How to set the package selection status to the current status ) 
He realizado un comando dpkg --clear-selectionsDefghijklmn2Defghijklmn2DEFGHIJKLMN2 y encontré que todos mis paquetes se seleccionan para la eliminación. Com...

3  dpkg sin shell  ( Dpkg with no shell ) 
¿Cómo ejecutar DPKG sin shell? Aquí está mi problema: HECHO Y AUTORUN.SH Script en mi clave USB. Para ejecutar este script, creé reglas en /etc/udev/ru...

5  No se puede eliminar QTSPIM de Ubuntu 14.04 LTS  ( Cannot remove qtspim from ubuntu 14 04 lts ) 
Recientemente intenté instalar SPIM (Compiler MIPS) en mi máquina y no funcionó. Ahora estoy tratando de eliminar todo, pero simplemente no puedo hacerlo y la...

8  Subproceso de instalación de postes Docker-CE nunca termina  ( Docker ce post installation subprocess never finishes ) 
Intenté instalar docker-ce siguiendo las instrucciones proporcionadas en la documentación oficial de Docker usando el repositorio . La instalación se atasc...

33  Usuario desconocido en el archivo statoverride  ( Unknown user in statoverride file ) 
Tuve una solicitud instalada en mi HTPC que ejecuta Ubuntu Server llamado Mediatomb, hace unos meses lo desinstalé y lo reemplazé con una instalación PLEX. En...

10  ¿Qué significa "II" en la producción de comando "DPKG - Lista"? [duplicar]  ( What does ii mean in dpkg list command output ) 
Esta pregunta ya tiene respuestas aquí : ¿Qué significan las distintas banderas de DPKG como 'II' 'R...

2  No se puede purgar MySQL -SERVER  ( Unable to purge mysql server ) 
Soy nuevo en Ubuntu. Estoy tratando de desinstalar MySQL-Server, mientras lo estoy haciendo, el proceso de purga se atasca en la línea ABCDEFGHIJKLMNABCDEFGH...

4  No se puede instalar nada, error DPKG  ( Cant install anything dpkg error ) 
No puedo instalar nada en mi Ubuntu ... I Googled It, encontré el mismo problema, pero ninguna de las soluciones propuestas resolvió mi problema ... todo el t...

9  ¿Cómo resolver el error de "Usuario desconocido" de ELASTICSEARCH "en el archivo STATOVERRAGE"?  ( How to resolve unknown user elasticsearch in statoverride file error ) 
He estado tratando de instalar la búsqueda elástica, he descargado el archivo elasticsearch-2.3.4.deb . Cuando intento usar el comando: sudo dpkg -i elast...

0  Sudo apt-get -f Instale error GCC-6-Base  ( Sudo apt get f install error gcc 6 base ) 
No puedo instalar anualmente en mi compuerta, obteniendo este error, incluso si intento instalar sudo apt-get -f. Utilizando Ubuntu 17.04 64 bits dpkg: dep...




© 2022 respuesta.top Reservados todos los derechos. Centro de preguntas y respuestas reservados todos los derechos