software-properties-gtk crashes Ubuntu 18.04












0















I am working on an Ubuntu 18.04 install in chroot. I am using the latest Xfce desktop from the official repos and have no broken dependencies. For some odd reason, I keep getting the error below when I try to open "Software & Updates" (aka software-properties-gtk from the command line), I made sure that /proc was mounted so top worked and that fixed part of my issues already, but left the error report you see below when I try to run the command to open this app. And, I ran



xhost +



in the host machine (also running Ubuntu 18.04) to make sure the chroot can do graphical stuff. I also tried turning this into a live ISO and still get the exact same error on there as I do in chroot. Is there a way to fix this?



File "/usr/bin/software-properties-gtk", line 37, in <module>
from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 61, in <module>
from softwareproperties.SoftwareProperties import SoftwareProperties
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 64, in <module>
from . import shortcuts
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 23, in <module>
_DEF_CODENAME = aptsources.distro.get_distro().codename
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 576, in get_distro
os_release = _OSRelease()
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 525, in __init__
self.parse()
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 547, in parse
self.parse_entry(*line.split('=', 1))
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 551, in parse_entry
value = self.parse_value(value) # Values can be shell strings...
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 559, in parse_value
values = shlex.split(value)
File "/usr/lib/python3.6/shlex.py", line 305, in split
return list(lex)
File "/usr/lib/python3.6/shlex.py", line 295, in __next__
token = self.get_token()
File "/usr/lib/python3.6/shlex.py", line 105, in get_token
raw = self.read_token()
File "/usr/lib/python3.6/shlex.py", line 187, in read_token
raise ValueError("No closing quotation")
ValueError: No closing quotation


For completeness, I have already tried:




  • Running software-properties-gtk with root

  • This answer: https://askubuntu.com/a/1026885/670884

  • As well as this answer: https://askubuntu.com/a/531432/670884

  • And this one too: https://askubuntu.com/a/236641/670884










share|improve this question



























    0















    I am working on an Ubuntu 18.04 install in chroot. I am using the latest Xfce desktop from the official repos and have no broken dependencies. For some odd reason, I keep getting the error below when I try to open "Software & Updates" (aka software-properties-gtk from the command line), I made sure that /proc was mounted so top worked and that fixed part of my issues already, but left the error report you see below when I try to run the command to open this app. And, I ran



    xhost +



    in the host machine (also running Ubuntu 18.04) to make sure the chroot can do graphical stuff. I also tried turning this into a live ISO and still get the exact same error on there as I do in chroot. Is there a way to fix this?



    File "/usr/bin/software-properties-gtk", line 37, in <module>
    from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
    File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 61, in <module>
    from softwareproperties.SoftwareProperties import SoftwareProperties
    File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 64, in <module>
    from . import shortcuts
    File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 23, in <module>
    _DEF_CODENAME = aptsources.distro.get_distro().codename
    File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 576, in get_distro
    os_release = _OSRelease()
    File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 525, in __init__
    self.parse()
    File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 547, in parse
    self.parse_entry(*line.split('=', 1))
    File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 551, in parse_entry
    value = self.parse_value(value) # Values can be shell strings...
    File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 559, in parse_value
    values = shlex.split(value)
    File "/usr/lib/python3.6/shlex.py", line 305, in split
    return list(lex)
    File "/usr/lib/python3.6/shlex.py", line 295, in __next__
    token = self.get_token()
    File "/usr/lib/python3.6/shlex.py", line 105, in get_token
    raw = self.read_token()
    File "/usr/lib/python3.6/shlex.py", line 187, in read_token
    raise ValueError("No closing quotation")
    ValueError: No closing quotation


    For completeness, I have already tried:




    • Running software-properties-gtk with root

    • This answer: https://askubuntu.com/a/1026885/670884

    • As well as this answer: https://askubuntu.com/a/531432/670884

    • And this one too: https://askubuntu.com/a/236641/670884










    share|improve this question

























      0












      0








      0








      I am working on an Ubuntu 18.04 install in chroot. I am using the latest Xfce desktop from the official repos and have no broken dependencies. For some odd reason, I keep getting the error below when I try to open "Software & Updates" (aka software-properties-gtk from the command line), I made sure that /proc was mounted so top worked and that fixed part of my issues already, but left the error report you see below when I try to run the command to open this app. And, I ran



      xhost +



      in the host machine (also running Ubuntu 18.04) to make sure the chroot can do graphical stuff. I also tried turning this into a live ISO and still get the exact same error on there as I do in chroot. Is there a way to fix this?



      File "/usr/bin/software-properties-gtk", line 37, in <module>
      from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
      File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 61, in <module>
      from softwareproperties.SoftwareProperties import SoftwareProperties
      File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 64, in <module>
      from . import shortcuts
      File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 23, in <module>
      _DEF_CODENAME = aptsources.distro.get_distro().codename
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 576, in get_distro
      os_release = _OSRelease()
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 525, in __init__
      self.parse()
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 547, in parse
      self.parse_entry(*line.split('=', 1))
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 551, in parse_entry
      value = self.parse_value(value) # Values can be shell strings...
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 559, in parse_value
      values = shlex.split(value)
      File "/usr/lib/python3.6/shlex.py", line 305, in split
      return list(lex)
      File "/usr/lib/python3.6/shlex.py", line 295, in __next__
      token = self.get_token()
      File "/usr/lib/python3.6/shlex.py", line 105, in get_token
      raw = self.read_token()
      File "/usr/lib/python3.6/shlex.py", line 187, in read_token
      raise ValueError("No closing quotation")
      ValueError: No closing quotation


      For completeness, I have already tried:




      • Running software-properties-gtk with root

      • This answer: https://askubuntu.com/a/1026885/670884

      • As well as this answer: https://askubuntu.com/a/531432/670884

      • And this one too: https://askubuntu.com/a/236641/670884










      share|improve this question














      I am working on an Ubuntu 18.04 install in chroot. I am using the latest Xfce desktop from the official repos and have no broken dependencies. For some odd reason, I keep getting the error below when I try to open "Software & Updates" (aka software-properties-gtk from the command line), I made sure that /proc was mounted so top worked and that fixed part of my issues already, but left the error report you see below when I try to run the command to open this app. And, I ran



      xhost +



      in the host machine (also running Ubuntu 18.04) to make sure the chroot can do graphical stuff. I also tried turning this into a live ISO and still get the exact same error on there as I do in chroot. Is there a way to fix this?



      File "/usr/bin/software-properties-gtk", line 37, in <module>
      from softwareproperties.gtk.SoftwarePropertiesGtk import SoftwarePropertiesGtk
      File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 61, in <module>
      from softwareproperties.SoftwareProperties import SoftwareProperties
      File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 64, in <module>
      from . import shortcuts
      File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 23, in <module>
      _DEF_CODENAME = aptsources.distro.get_distro().codename
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 576, in get_distro
      os_release = _OSRelease()
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 525, in __init__
      self.parse()
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 547, in parse
      self.parse_entry(*line.split('=', 1))
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 551, in parse_entry
      value = self.parse_value(value) # Values can be shell strings...
      File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 559, in parse_value
      values = shlex.split(value)
      File "/usr/lib/python3.6/shlex.py", line 305, in split
      return list(lex)
      File "/usr/lib/python3.6/shlex.py", line 295, in __next__
      token = self.get_token()
      File "/usr/lib/python3.6/shlex.py", line 105, in get_token
      raw = self.read_token()
      File "/usr/lib/python3.6/shlex.py", line 187, in read_token
      raise ValueError("No closing quotation")
      ValueError: No closing quotation


      For completeness, I have already tried:




      • Running software-properties-gtk with root

      • This answer: https://askubuntu.com/a/1026885/670884

      • As well as this answer: https://askubuntu.com/a/531432/670884

      • And this one too: https://askubuntu.com/a/236641/670884







      gtk python3 chroot






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 days ago









      BatcastleBatcastle

      988




      988






















          0






          active

          oldest

          votes











          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%2f1123970%2fsoftware-properties-gtk-crashes-ubuntu-18-04%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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%2f1123970%2fsoftware-properties-gtk-crashes-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

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]