apt commands fail because No file name for keyboard-configuration:amd64

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I just did an upgrade on my Debian install.



After updating my sources.list from Jessie to Stretch I did an apt-get update, apt-get upgrade and apt-get dist-upgrade.



While some packages failed to update the machine is still in a usable state. However 33 have failed to install properly starting with xserver-xorg-core.



It fails with the following message:




Setting up keyboard-configuration (1.164) ...



/var/lib/dpkg/info/keyboard-configuration.config: 5:



/etc/default/keyboard: Syntax error: Unterminated quoted string



dpkg: error processing package keyboard-configuration (--configure):



subprocess installed post-installation script returned error exit



status 2 dpkg: dependency problems prevent configuration of



xserver-xorg-core: xserver-xorg-core depends on
keyboard-configuration; however: Package keyboard-configuration is not
configured yet.




Doing a apt-get install --reinstall keyboard-configuration returns the following message:




E: Internal Error, No file name for keyboard-configuration:amd64




Here is the output of uname -a:




Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux




EDIT:



Here is the content of /etc/default/keyboard:




XKBLAYOUT=us,ca XKBVARIANT=, BACKSPACE=guess XKBOPTIONS=caps:escape"








share|improve this question

























    up vote
    0
    down vote

    favorite












    I just did an upgrade on my Debian install.



    After updating my sources.list from Jessie to Stretch I did an apt-get update, apt-get upgrade and apt-get dist-upgrade.



    While some packages failed to update the machine is still in a usable state. However 33 have failed to install properly starting with xserver-xorg-core.



    It fails with the following message:




    Setting up keyboard-configuration (1.164) ...



    /var/lib/dpkg/info/keyboard-configuration.config: 5:



    /etc/default/keyboard: Syntax error: Unterminated quoted string



    dpkg: error processing package keyboard-configuration (--configure):



    subprocess installed post-installation script returned error exit



    status 2 dpkg: dependency problems prevent configuration of



    xserver-xorg-core: xserver-xorg-core depends on
    keyboard-configuration; however: Package keyboard-configuration is not
    configured yet.




    Doing a apt-get install --reinstall keyboard-configuration returns the following message:




    E: Internal Error, No file name for keyboard-configuration:amd64




    Here is the output of uname -a:




    Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux




    EDIT:



    Here is the content of /etc/default/keyboard:




    XKBLAYOUT=us,ca XKBVARIANT=, BACKSPACE=guess XKBOPTIONS=caps:escape"








    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I just did an upgrade on my Debian install.



      After updating my sources.list from Jessie to Stretch I did an apt-get update, apt-get upgrade and apt-get dist-upgrade.



      While some packages failed to update the machine is still in a usable state. However 33 have failed to install properly starting with xserver-xorg-core.



      It fails with the following message:




      Setting up keyboard-configuration (1.164) ...



      /var/lib/dpkg/info/keyboard-configuration.config: 5:



      /etc/default/keyboard: Syntax error: Unterminated quoted string



      dpkg: error processing package keyboard-configuration (--configure):



      subprocess installed post-installation script returned error exit



      status 2 dpkg: dependency problems prevent configuration of



      xserver-xorg-core: xserver-xorg-core depends on
      keyboard-configuration; however: Package keyboard-configuration is not
      configured yet.




      Doing a apt-get install --reinstall keyboard-configuration returns the following message:




      E: Internal Error, No file name for keyboard-configuration:amd64




      Here is the output of uname -a:




      Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux




      EDIT:



      Here is the content of /etc/default/keyboard:




      XKBLAYOUT=us,ca XKBVARIANT=, BACKSPACE=guess XKBOPTIONS=caps:escape"








      share|improve this question













      I just did an upgrade on my Debian install.



      After updating my sources.list from Jessie to Stretch I did an apt-get update, apt-get upgrade and apt-get dist-upgrade.



      While some packages failed to update the machine is still in a usable state. However 33 have failed to install properly starting with xserver-xorg-core.



      It fails with the following message:




      Setting up keyboard-configuration (1.164) ...



      /var/lib/dpkg/info/keyboard-configuration.config: 5:



      /etc/default/keyboard: Syntax error: Unterminated quoted string



      dpkg: error processing package keyboard-configuration (--configure):



      subprocess installed post-installation script returned error exit



      status 2 dpkg: dependency problems prevent configuration of



      xserver-xorg-core: xserver-xorg-core depends on
      keyboard-configuration; however: Package keyboard-configuration is not
      configured yet.




      Doing a apt-get install --reinstall keyboard-configuration returns the following message:




      E: Internal Error, No file name for keyboard-configuration:amd64




      Here is the output of uname -a:




      Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux




      EDIT:



      Here is the content of /etc/default/keyboard:




      XKBLAYOUT=us,ca XKBVARIANT=, BACKSPACE=guess XKBOPTIONS=caps:escape"










      share|improve this question












      share|improve this question




      share|improve this question








      edited Apr 27 at 20:04
























      asked Apr 27 at 19:54









      Gilles

      199118




      199118




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          The error message



          /var/lib/dpkg/info/keyboard-configuration.config: 5:
          /etc/default/keyboard: Syntax error: Unterminated quoted string


          suggests there’s a problem with your /etc/default/keyboard file. Looking at the contents shows that you have an extraneous quote at the end of XKBOPTIONS; remove that and everything should work again (after a dpkg-reconfigure --pending).






          share|improve this answer





















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440500%2fapt-commands-fail-because-no-file-name-for-keyboard-configurationamd64%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            2
            down vote



            accepted










            The error message



            /var/lib/dpkg/info/keyboard-configuration.config: 5:
            /etc/default/keyboard: Syntax error: Unterminated quoted string


            suggests there’s a problem with your /etc/default/keyboard file. Looking at the contents shows that you have an extraneous quote at the end of XKBOPTIONS; remove that and everything should work again (after a dpkg-reconfigure --pending).






            share|improve this answer

























              up vote
              2
              down vote



              accepted










              The error message



              /var/lib/dpkg/info/keyboard-configuration.config: 5:
              /etc/default/keyboard: Syntax error: Unterminated quoted string


              suggests there’s a problem with your /etc/default/keyboard file. Looking at the contents shows that you have an extraneous quote at the end of XKBOPTIONS; remove that and everything should work again (after a dpkg-reconfigure --pending).






              share|improve this answer























                up vote
                2
                down vote



                accepted







                up vote
                2
                down vote



                accepted






                The error message



                /var/lib/dpkg/info/keyboard-configuration.config: 5:
                /etc/default/keyboard: Syntax error: Unterminated quoted string


                suggests there’s a problem with your /etc/default/keyboard file. Looking at the contents shows that you have an extraneous quote at the end of XKBOPTIONS; remove that and everything should work again (after a dpkg-reconfigure --pending).






                share|improve this answer













                The error message



                /var/lib/dpkg/info/keyboard-configuration.config: 5:
                /etc/default/keyboard: Syntax error: Unterminated quoted string


                suggests there’s a problem with your /etc/default/keyboard file. Looking at the contents shows that you have an extraneous quote at the end of XKBOPTIONS; remove that and everything should work again (after a dpkg-reconfigure --pending).







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Apr 27 at 20:38









                Stephen Kitt

                140k22302363




                140k22302363






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440500%2fapt-commands-fail-because-no-file-name-for-keyboard-configurationamd64%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Bahrain

                    Postfix configuration issue with fips on centos 7; mailgun relay