Announcement

Collapse
No announcement yet.

Errors updating

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] Errors updating

    Sorry, I'm french and write an approximately English language. Nobody is perfect! Well, I'm using Kunbutu 24.04 only Dell pc. Since one month, upgrade return errors. Upgrade are possible only using Konsole. I don't know if this problem is know and resolve but I would like help please. See images in attachment.

    #2
    Sorry, no attachments until you've posted at least three times

    Please Read Me

    Comment


      #3
      Hello Proton, Welcome to the Kubuntu forum. update errors can be caused by lots of things but just so you know the servers have been up and down in recent days. so that maybe the problem. They were working ok this morning though.
      Dave Kubuntu 20.04 Registered Linux User #462608

      Wireless Script: http://ubuntuforums.org/showthread.p...5#post12350385

      Comment


        #4
        Originally posted by Proton View Post
        Upgrade are possible only using Konsole.
        Discover handles Snap updates as well as flatpaks, on top of the system deb packages.
        Updating in Konsole, using apt *only* updates the system debs, so you will need to tell us what the error says.

        The command snap refresh will update snaps.
        the command flatpak update will do this for Flatpaks, if you have set that up and are using any.

        Discover also can update firmware and KDE themes. The error could be coming from there, but is less common.

        Until you have more posts, you will need to copy the text. This is better than images in most cases, as it helps the helpers.
        Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
        HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
        HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

        Comment


          #5
          Tanks at all. Understand, ok, write.First, system: 4x Intel Core i5-3450 CPU 3.10Ghz, memory 7,7 Gio, graphic card Mesa Intel HD Graphics 2500. It's Dell PC recovery with Kubuntu 24.04 self install on SSD nvme 250 Go. For administrative family works. Have a second PC Windows for game. Second: KDE Plasma 5.27.12, KDE Frameworks 5.115.0, Qt 5.15.13, Core 6.17.0.14-generic (64-bit), plate-form graphic X11.
          Now, text Konsole:
          update-initramfs: generating /boot/initrd.img-6.17.0-19-generic
          /etc/kernel/postinst.d/zz-update-grub
          Sourcing file '/etc/default/grub'
          /usr/sbin/grub-mkconfig: 32: etc/default/grub: Syntax error: Unterminated quoted string
          run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
          dpkg: erreur de traitement du paquet linux-image-6.17.0-19-generic (--configure) :
          le sous-processus paquet linux-image-6.17.0-19-generic script post-installation installé a renvoyé un état de sortie d'erreur 2.

          Same text for linux-image-6.17.0-23-generic, 6.17.0-22-generic, 6.17.0-20-generic.

          Aucun rapport << apport >> écrit car MaxReprts a déjà été atteint
          Des erreurs ont été rencontrées pendant l'exécution :
          linux-image-6.17.0-19-generic
          linux-image-6.17.0-23-generic
          linux-image-6.17.0-22-generic
          linux-image-6.17.0-20-generic
          E: Sub- process /usr/bin/dpkg returned an error code (1)

          I hope text without mistakes. Sorry when in french. Now wait for your help.Thanks.

          Comment


            #6
            /usr/sbin/grub-mkconfig: 32: etc/default/grub: Syntax error: Unterminated quoted string
            you have a broken GRUB config file
            in terminal run
            Code:
            sudo nano /etc/default/grub
            look for any line that missing a " at the end ,for example GRUB_CMDLINE_LINUX_DEFAULT="quiet splash should be GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
            after fixing the line/lines , save and exit with ctrl+o - enter - ctrl+x
            PS:
            to quickly spot bad quotes, run
            Code:
            grep '"' /etc/default/grub -n
            then regenarate GRUB with
            Code:
            sudo update-grub
            , no errors should occur
            then run these commands to fix broken updates

            Code:
            sudo dpkg --configure -a
            Code:
            sudo apt -f install​
            Last edited by die.boer; May 06, 2026, 10:39 AM.
            ʟɨռʊӼ ʄօʀ ʟɨʄɛ

            Comment


              #7
              Goodmorning
              Okay,thanks, I try it.

              Comment


                #8
                Then, I no make a success,where is my problems?I post a attachment,for help. Thanks.
                Attached Files

                Comment


                  #9
                  it makes no sense that screenshot
                  please run in terminal
                  Code:
                  sudo nano /etc/default/grub

                  select and copy all the output from terminal , then come paste it here please
                  do not take a screenshot of it
                  Last edited by die.boer; May 08, 2026, 11:53 AM.
                  ʟɨռʊӼ ʄօʀ ʟɨʄɛ

                  Comment


                    #10
                    Originally posted by die.boer View Post
                    select and copy all the output from terminal , then come paste it here please
                    do not take a screenshot of it

                    Originally posted by Proton View Post
                    ?I post a attachment,for help. Thanks
                    A good tip: just copy and paste the text. Like you did before. It is much easier for us to then copy or translate specific parts if we need to

                    You don't need to worry about using any code tags or anything.
                    Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
                    HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
                    HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

                    Comment


                      #11
                      GNU nano 7.2 /etc/default/grub
                      # If you change this file, run 'update-grub' afterwards to update
                      # /boot/grub/grub.cfg.
                      # For full documentation of the options in this file, see:
                      # info -f grub -n 'Simple configuration'

                      GRUB_DEFAULT=0
                      GRUB_TIMEOUT_STYLE=hidden
                      GRUB_TIMEOUT=20
                      GRUB_DISTRIBUTOR='Kubuntu'
                      GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
                      GRUB_CMDLINE_LINUX=""
                      Sourcing file '/etc/default/grub'
                      Generating grub configuration file ...
                      Found linux image: /boot/vmlinuz-6.17.0-14-generic
                      Found initrd image: /boot/initrd.img-6.17.0-14-generic
                      Found linux image: /boot/vmlinuz-6.14.0-37-generic
                      Found initrd image: /boot/initrd.img-6.14.0-37-generic
                      Found memtest86+x64 image: /boot/memtest86+x64.bin
                      Warning: os-prober will be executed to detect other bootable partitions.
                      Its output will be used to detect bootable binaries on them and create new boot entries.
                      Found Ubuntu 24.04.3 LTS (24.04) on /dev/sdb3
                      Adding boot menu entry for UEFI Firmware Settings ...
                      done
                      exit

                      # If your computer has multiple operating systems installed, then you
                      # probably want to run os-prober. However, if your computer is a host
                      # for guest OSes installed via LVM or raw disk devices, running
                      # os-prober can cause damage to those guest OSes as it mounts
                      # filesystems to look for things.
                      #GRUB_DISABLE_OS_PROBER=false

                      # Uncomment to enable BadRAM filtering, modify to suit your needs
                      # This works with Linux (no patch required) and with any kernel that obtains
                      # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
                      #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xe fefefef"

                      # Uncomment to disable graphical terminal
                      #GRUB_TERMINAL=console

                      # The resolution used on graphical terminal
                      # note that you can use only modes which your graphic card supports via VBE
                      # you can see them in real GRUB with the command `vbeinfo'
                      #GRUB_GFXMODE=640x480

                      # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
                      #GRUB_DISABLE_LINUX_UUID=true

                      # Uncomment to disable generation of recovery mode menu entries
                      #GRUB_DISABLE_RECOVERY="true"


                      Comment


                        #12
                        Tanks for your patience..

                        Comment


                          #13

                          [sudo] Mot de passe de joaquim :
                          root@joaquim-vostro470:/home/joaquim# sudo apt update
                          Atteint :1 http://fr.archive.ubuntu.com/ubuntu noble InRelease
                          Réception de :2 http://fr.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB]
                          Atteint :3 http://fr.archive.ubuntu.com/ubuntu noble-backports InRelease
                          Atteint :4 http://archive.ubuntu.com/ubuntu noble InRelease
                          Réception de :5 http://fr.archive.ubuntu.com/ubuntu noble-updates/main i386 Packages [614 kB]
                          Atteint :6 http://security.ubuntu.com/ubuntu noble-security InRelease
                          Réception de :7 http://fr.archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages [1 969 kB]
                          Réception de :8 http://fr.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [1 129 kB]
                          Réception de :9 http://fr.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [1 688 kB]
                          5 527 ko réceptionnés en 2s (3 531 ko/s)
                          Lecture des listes de paquets... Fait
                          Construction de l'arbre des dépendances... Fait
                          Lecture des informations d'état... Fait
                          Tous les paquets sont à jour.
                          root@joaquim-vostro470:/home/joaquim# sudo-apt upgrade
                          sudo-apt : commande introuvable
                          root@joaquim-vostro470:/home/joaquim# sudo apt autoremove
                          Lecture des listes de paquets... Fait
                          Construction de l'arbre des dépendances... Fait
                          Lecture des informations d'état... Fait
                          Les paquets suivants seront ENLEVÉS :
                          linux-image-6.14.0-37-generic
                          0 mis à jour, 0 nouvellement installés, 1 à enlever et 0 non mis à jour.
                          5 partiellement installés ou enlevés.
                          Après cette opération, 15,6 Mo d'espace disque seront libérés.
                          Souhaitez-vous continuer ? [O/n] o
                          (Lecture de la base de données... 389783 fichiers et répertoires déjà installés.)
                          Suppression de linux-image-6.14.0-37-generic (6.14.0-37.37~24.04.1) ...
                          /etc/kernel/postrm.d/initramfs-tools:
                          update-initramfs: Deleting /boot/initrd.img-6.14.0-37-generic
                          /etc/kernel/postrm.d/zz-update-grub:
                          Sourcing file `/etc/default/grub'
                          /usr/sbin/grub-mkconfig: 12: /etc/default/grub: Sourcing: not found
                          run-parts: /etc/kernel/postrm.d/zz-update-grub exited with return code 127
                          dpkg: erreur de traitement du paquet linux-image-6.14.0-37-generic (--remove) :
                          le sous-processus paquet linux-image-6.14.0-37-generic script post-removal installé a renvoyé un état de sort
                          ie d'erreur 127
                          dpkg: trop d'erreurs, arrêt
                          Des erreurs ont été rencontrées pendant l'exécution :
                          linux-image-6.14.0-37-generic
                          L'exécution a été arrêtée car il y avait trop d'erreurs.
                          E: Sub-process /usr/bin/dpkg returned an error code (1)
                          root@joaquim-vostro470:/home/joaquim#



                          ​And then the end.

                          Comment


                            #14
                            Originally posted by Proton View Post
                            Sourcing file '/etc/default/grub'
                            Generating grub configuration file ...
                            Found linux image: /boot/vmlinuz-6.17.0-14-generic
                            Found initrd image: /boot/initrd.img-6.17.0-14-generic
                            Found linux image: /boot/vmlinuz-6.14.0-37-generic
                            Found initrd image: /boot/initrd.img-6.14.0-37-generic
                            Found memtest86+x64 image: /boot/memtest86+x64.bin
                            Warning: os-prober will be executed to detect other bootable partitions.
                            Its output will be used to detect bootable binaries on them and create new boot entries.
                            Found Ubuntu 24.04.3 LTS (24.04) on /dev/sdb3
                            Adding boot menu entry for UEFI Firmware Settings ...
                            done
                            exit
                            Ok, is this text actually in the file? This is terminal output accidentally pasted into the file.

                            All of this needs to be removed.

                            You can use Kate text editor, so you don't need to use the command line if you prefer not to. Kate will ask for your password when saving the file, so you don't need to do anything special with sudo or anything.

                            Just to be safe, save a copy of the file, just in case.



                            Make it look like this.

                            # If you change this file, run 'update-grub' afterwards to update
                            # /boot/grub/grub.cfg.
                            # For full documentation of the options in this file, see:
                            # info -f grub -n 'Simple configuration'

                            GRUB_DEFAULT=0
                            GRUB_TIMEOUT_STYLE=hidden
                            GRUB_TIMEOUT=20
                            GRUB_DISTRIBUTOR='Kubuntu'
                            GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
                            GRUB_CMDLINE_LINUX=""

                            # If your computer has multiple operating systems installed, then you
                            # probably want to run os-prober. However, if your computer is a host
                            # for guest OSes installed via LVM or raw disk devices, running
                            # os-prober can cause damage to those guest OSes as it mounts
                            # filesystems to look for things.
                            #GRUB_DISABLE_OS_PROBER=false



                            Do not change anything else in the file. Just remove the extra bits,

                            Then run
                            Code:
                            sudo update-grub
                            And then

                            Code:
                            sudo apt update
                            Then run this to have it complete the steps where it failed before:

                            Code:
                            sudo dpkg --configure -a
                            And to install anything missing cause by the error (just in case)
                            Code:
                            sudo apt -f install
                            Then try updating with Discover, or to see any errors or warnings, use the terminal, since you already have it handy :

                            Code:
                            sudo apt upgrade 
                            sudo apt autoremove
                            What happened here:
                            • Autoremove was trying to remove an old kernel - good!
                            • Part of the process involves running update-grub for you
                            • The Grub config was messy - not good.
                            • So the removal step failed, and apt does not want to do much when it is interrupted.
                            Hopefully this fixes it all!!


                            Self-built: Asus PRIME B550M-K/Ryzen 5600GT/32Gb/Intel ARC B580 12Gb/KDE neon
                            HP Elitedesk 800 G3 Mini: i5-7500T(35w)/32Gb/Kubuntu LTS
                            HP Chromebook 14: i5-1135G7/8Gb/512Gb SSD/KDE Linux

                            Comment


                              #15
                              yup
                              Sourcing file '/etc/default/grub'
                              Generating grub configuration file ...
                              Found linux image: /boot/vmlinuz-6.17.0-14-generic
                              ...
                              done
                              exit​

                              all this do not belong in the GRUB file
                              ʟɨռʊӼ ʄօʀ ʟɨʄɛ

                              Comment

                              Users Viewing This Topic

                              Collapse

                              There are 0 users viewing this topic.

                              Working...
                              X