Snaps won't install in Ubuntu 18.04












1















I have a fresh installation of Ubuntu 18.04 and when I try to install any snaps from Ubuntu Software I invariably get the message too early for operation, device not yet seeded or device model not acknowledged. I'm fairly new with Ubuntu, but I know how to google and follow instructions. I can't find a solution to this problem. Has anyone seen this?



enter image description here










share|improve this question





























    1















    I have a fresh installation of Ubuntu 18.04 and when I try to install any snaps from Ubuntu Software I invariably get the message too early for operation, device not yet seeded or device model not acknowledged. I'm fairly new with Ubuntu, but I know how to google and follow instructions. I can't find a solution to this problem. Has anyone seen this?



    enter image description here










    share|improve this question



























      1












      1








      1








      I have a fresh installation of Ubuntu 18.04 and when I try to install any snaps from Ubuntu Software I invariably get the message too early for operation, device not yet seeded or device model not acknowledged. I'm fairly new with Ubuntu, but I know how to google and follow instructions. I can't find a solution to this problem. Has anyone seen this?



      enter image description here










      share|improve this question
















      I have a fresh installation of Ubuntu 18.04 and when I try to install any snaps from Ubuntu Software I invariably get the message too early for operation, device not yet seeded or device model not acknowledged. I'm fairly new with Ubuntu, but I know how to google and follow instructions. I can't find a solution to this problem. Has anyone seen this?



      enter image description here







      18.04 software-installation snap






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 6 at 11:13









      karel

      58.4k13128146




      58.4k13128146










      asked Jan 6 at 10:40









      Scipio RexScipio Rex

      61




      61






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Try the approach described here. This essentially refreshes a configuration file.



          Open the terminal and issue following commands one by one (tip: triple-click a line to select it, then copy it and paste it in the terminal). On Ubuntu, you will need to install the jq command, so I added one command to do that. In addition, I added a command to backup the original file so you can restore the previous situation in case it did not solve the issue.



          sudo apt install jq
          sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json-old
          sudo systemctl stop snapd
          sudo cat /var/lib/snapd/state.json | jq 'delpaths([["data", "auth", "device"]])' > state.json-new
          sudo cp state.json-new /var/lib/snapd/state.json
          sudo systemctl start snapd


          To be sure, reboot the system and try it the problem is solved. If not, you can revert to the previous state by copying the old file back, deleting the backup and new file, and optionally deleting the command again:



          sudo cp state.json-old /var/lib/snapd/state.json
          sudo rm state.json-*
          sudo apt remove jq ; sudo apt autoremove





          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107388%2fsnaps-wont-install-in-ubuntu-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Try the approach described here. This essentially refreshes a configuration file.



            Open the terminal and issue following commands one by one (tip: triple-click a line to select it, then copy it and paste it in the terminal). On Ubuntu, you will need to install the jq command, so I added one command to do that. In addition, I added a command to backup the original file so you can restore the previous situation in case it did not solve the issue.



            sudo apt install jq
            sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json-old
            sudo systemctl stop snapd
            sudo cat /var/lib/snapd/state.json | jq 'delpaths([["data", "auth", "device"]])' > state.json-new
            sudo cp state.json-new /var/lib/snapd/state.json
            sudo systemctl start snapd


            To be sure, reboot the system and try it the problem is solved. If not, you can revert to the previous state by copying the old file back, deleting the backup and new file, and optionally deleting the command again:



            sudo cp state.json-old /var/lib/snapd/state.json
            sudo rm state.json-*
            sudo apt remove jq ; sudo apt autoremove





            share|improve this answer




























              0














              Try the approach described here. This essentially refreshes a configuration file.



              Open the terminal and issue following commands one by one (tip: triple-click a line to select it, then copy it and paste it in the terminal). On Ubuntu, you will need to install the jq command, so I added one command to do that. In addition, I added a command to backup the original file so you can restore the previous situation in case it did not solve the issue.



              sudo apt install jq
              sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json-old
              sudo systemctl stop snapd
              sudo cat /var/lib/snapd/state.json | jq 'delpaths([["data", "auth", "device"]])' > state.json-new
              sudo cp state.json-new /var/lib/snapd/state.json
              sudo systemctl start snapd


              To be sure, reboot the system and try it the problem is solved. If not, you can revert to the previous state by copying the old file back, deleting the backup and new file, and optionally deleting the command again:



              sudo cp state.json-old /var/lib/snapd/state.json
              sudo rm state.json-*
              sudo apt remove jq ; sudo apt autoremove





              share|improve this answer


























                0












                0








                0







                Try the approach described here. This essentially refreshes a configuration file.



                Open the terminal and issue following commands one by one (tip: triple-click a line to select it, then copy it and paste it in the terminal). On Ubuntu, you will need to install the jq command, so I added one command to do that. In addition, I added a command to backup the original file so you can restore the previous situation in case it did not solve the issue.



                sudo apt install jq
                sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json-old
                sudo systemctl stop snapd
                sudo cat /var/lib/snapd/state.json | jq 'delpaths([["data", "auth", "device"]])' > state.json-new
                sudo cp state.json-new /var/lib/snapd/state.json
                sudo systemctl start snapd


                To be sure, reboot the system and try it the problem is solved. If not, you can revert to the previous state by copying the old file back, deleting the backup and new file, and optionally deleting the command again:



                sudo cp state.json-old /var/lib/snapd/state.json
                sudo rm state.json-*
                sudo apt remove jq ; sudo apt autoremove





                share|improve this answer













                Try the approach described here. This essentially refreshes a configuration file.



                Open the terminal and issue following commands one by one (tip: triple-click a line to select it, then copy it and paste it in the terminal). On Ubuntu, you will need to install the jq command, so I added one command to do that. In addition, I added a command to backup the original file so you can restore the previous situation in case it did not solve the issue.



                sudo apt install jq
                sudo cp /var/lib/snapd/state.json /var/lib/snapd/state.json-old
                sudo systemctl stop snapd
                sudo cat /var/lib/snapd/state.json | jq 'delpaths([["data", "auth", "device"]])' > state.json-new
                sudo cp state.json-new /var/lib/snapd/state.json
                sudo systemctl start snapd


                To be sure, reboot the system and try it the problem is solved. If not, you can revert to the previous state by copying the old file back, deleting the backup and new file, and optionally deleting the command again:



                sudo cp state.json-old /var/lib/snapd/state.json
                sudo rm state.json-*
                sudo apt remove jq ; sudo apt autoremove






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jan 6 at 11:07









                vanadiumvanadium

                5,49011229




                5,49011229






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1107388%2fsnaps-wont-install-in-ubuntu-18-04%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Mont Emei

                    Province de Neuquén

                    Journaliste