circular dependency between lsb-release and python3 (ubuntu 18.04) Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election Results Why I closed the “Why is Kali so hard” questionAlternative for psutil for ARM processors (raspberry pi) and python3How can I switch between Python 2.7 and 3.4 that are installed on Debian 8 (Jessie)?What is the differences between distributions, the OS and code names (stable, testing) in linux and what order is that listed in /etc/*release?Is this missing dependency-bug of Python3 in Kazam of Debian 8.5?Change the Python3 default version in UbuntuCan't install python3 on Ubuntu 18.04CentOS python3 package difference between python36 and python36uHow to build an RPM package for python app that works in Fedora 28 and 29, which have different default Python3 version?create files through terminal and joining two files in script python3file size different readings on linux and python3

Converted a Scalar function to a TVF function for parallel execution-Still running in Serial mode

What would you call this weird metallic apparatus that allows you to lift people?

Crossing US/Canada Border for less than 24 hours

Do I really need to have a message in a novel to appeal to readers?

How to draw/optimize this graph with tikz

Is it possible for SQL statements to execute concurrently within a single session in SQL Server?

Belief In God or Knowledge Of God. Which is better?

Is it fair for a professor to grade us on the possession of past papers?

draw dynamic circle around node and edges

Most bit efficient text communication method?

What to do with repeated rejections for phd position

Importance of からだ in this sentence

What is the appropriate index architecture when forced to implement IsDeleted (soft deletes)?

Is there hard evidence that the grant peer review system performs significantly better than random?

Exposing GRASS GIS add-on in QGIS Processing framework?

What was the first language to use conditional keywords?

Would it be possible to dictate a bech32 address as a list of English words?

Lagrange four-squares theorem --- deterministic complexity

How to play a character with a disability or mental disorder without being offensive?

What does it mean that physics no longer uses mechanical models to describe phenomena?

What is "gratricide"?

Is there any word for a place full of confusion?

Putting class ranking in CV, but against dept guidelines

What do you call the main part of a joke?



circular dependency between lsb-release and python3 (ubuntu 18.04)



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionAlternative for psutil for ARM processors (raspberry pi) and python3How can I switch between Python 2.7 and 3.4 that are installed on Debian 8 (Jessie)?What is the differences between distributions, the OS and code names (stable, testing) in linux and what order is that listed in /etc/*release?Is this missing dependency-bug of Python3 in Kazam of Debian 8.5?Change the Python3 default version in UbuntuCan't install python3 on Ubuntu 18.04CentOS python3 package difference between python36 and python36uHow to build an RPM package for python app that works in Fedora 28 and 29, which have different default Python3 version?create files through terminal and joining two files in script python3file size different readings on linux and python3



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I've managed to get into a situation where I have a circular dependency between lsb-release and python3. When I try to sudo apt install python3 --reinstall I get the following (just pasting the key lines)



(Reading database ... 470097 files and directories currently installed.)
Preparing to unpack .../python3_3.6.7-1~18.04_amd64.deb ...
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

[~] lsb_release
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007fa905a81740 (most recent call first):
Aborted (core dumped)


Clearly my lsb_release is broken. But if I run sudo apt-get install lsb-release I get



dpkg: error processing package python3 (--configure):
package is in a very bad inconsistent state; you should
reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of lsb-release:
lsb-release depends on python3:any (>= 3.4~); however:
Package python3 is not configured yet.


So I can't fix my python3 installation without fixing lsb-release, and vice versa.










share|improve this question









New contributor




GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    0















    I've managed to get into a situation where I have a circular dependency between lsb-release and python3. When I try to sudo apt install python3 --reinstall I get the following (just pasting the key lines)



    (Reading database ... 470097 files and directories currently installed.)
    Preparing to unpack .../python3_3.6.7-1~18.04_amd64.deb ...
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    Fatal Python error: Py_Initialize: Unable to get the locale encoding
    ModuleNotFoundError: No module named 'encodings'

    [~] lsb_release
    Could not find platform independent libraries <prefix>
    Could not find platform dependent libraries <exec_prefix>
    Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
    Fatal Python error: Py_Initialize: Unable to get the locale encoding
    ModuleNotFoundError: No module named 'encodings'

    Current thread 0x00007fa905a81740 (most recent call first):
    Aborted (core dumped)


    Clearly my lsb_release is broken. But if I run sudo apt-get install lsb-release I get



    dpkg: error processing package python3 (--configure):
    package is in a very bad inconsistent state; you should
    reinstall it before attempting configuration
    dpkg: dependency problems prevent configuration of lsb-release:
    lsb-release depends on python3:any (>= 3.4~); however:
    Package python3 is not configured yet.


    So I can't fix my python3 installation without fixing lsb-release, and vice versa.










    share|improve this question









    New contributor




    GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      0












      0








      0


      1






      I've managed to get into a situation where I have a circular dependency between lsb-release and python3. When I try to sudo apt install python3 --reinstall I get the following (just pasting the key lines)



      (Reading database ... 470097 files and directories currently installed.)
      Preparing to unpack .../python3_3.6.7-1~18.04_amd64.deb ...
      Could not find platform independent libraries <prefix>
      Could not find platform dependent libraries <exec_prefix>
      Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
      Fatal Python error: Py_Initialize: Unable to get the locale encoding
      ModuleNotFoundError: No module named 'encodings'

      [~] lsb_release
      Could not find platform independent libraries <prefix>
      Could not find platform dependent libraries <exec_prefix>
      Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
      Fatal Python error: Py_Initialize: Unable to get the locale encoding
      ModuleNotFoundError: No module named 'encodings'

      Current thread 0x00007fa905a81740 (most recent call first):
      Aborted (core dumped)


      Clearly my lsb_release is broken. But if I run sudo apt-get install lsb-release I get



      dpkg: error processing package python3 (--configure):
      package is in a very bad inconsistent state; you should
      reinstall it before attempting configuration
      dpkg: dependency problems prevent configuration of lsb-release:
      lsb-release depends on python3:any (>= 3.4~); however:
      Package python3 is not configured yet.


      So I can't fix my python3 installation without fixing lsb-release, and vice versa.










      share|improve this question









      New contributor




      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I've managed to get into a situation where I have a circular dependency between lsb-release and python3. When I try to sudo apt install python3 --reinstall I get the following (just pasting the key lines)



      (Reading database ... 470097 files and directories currently installed.)
      Preparing to unpack .../python3_3.6.7-1~18.04_amd64.deb ...
      Could not find platform independent libraries <prefix>
      Could not find platform dependent libraries <exec_prefix>
      Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
      Fatal Python error: Py_Initialize: Unable to get the locale encoding
      ModuleNotFoundError: No module named 'encodings'

      [~] lsb_release
      Could not find platform independent libraries <prefix>
      Could not find platform dependent libraries <exec_prefix>
      Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
      Fatal Python error: Py_Initialize: Unable to get the locale encoding
      ModuleNotFoundError: No module named 'encodings'

      Current thread 0x00007fa905a81740 (most recent call first):
      Aborted (core dumped)


      Clearly my lsb_release is broken. But if I run sudo apt-get install lsb-release I get



      dpkg: error processing package python3 (--configure):
      package is in a very bad inconsistent state; you should
      reinstall it before attempting configuration
      dpkg: dependency problems prevent configuration of lsb-release:
      lsb-release depends on python3:any (>= 3.4~); however:
      Package python3 is not configured yet.


      So I can't fix my python3 installation without fixing lsb-release, and vice versa.







      python3 lsb-release






      share|improve this question









      New contributor




      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited Apr 15 at 3:39









      Rui F Ribeiro

      42.2k1484142




      42.2k1484142






      New contributor




      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Apr 15 at 2:31









      GTKGTK

      1032




      1032




      New contributor




      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      GTK is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          1














          You can fix your Python installation without fixing lsb_release. Your Python installation needs other Python packages to be reinstalled; at least



          sudo apt install --reinstall libpython3.6-minimal


          and perhaps more. To reinstall all the packages, run



          sudo apt install --reinstall libpython3.6,-minimal,-stdlib python3.6,-minimal


          You should then find that lsb_release works fine.






          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',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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
            );



            );






            GTK is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f512473%2fcircular-dependency-between-lsb-release-and-python3-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









            1














            You can fix your Python installation without fixing lsb_release. Your Python installation needs other Python packages to be reinstalled; at least



            sudo apt install --reinstall libpython3.6-minimal


            and perhaps more. To reinstall all the packages, run



            sudo apt install --reinstall libpython3.6,-minimal,-stdlib python3.6,-minimal


            You should then find that lsb_release works fine.






            share|improve this answer



























              1














              You can fix your Python installation without fixing lsb_release. Your Python installation needs other Python packages to be reinstalled; at least



              sudo apt install --reinstall libpython3.6-minimal


              and perhaps more. To reinstall all the packages, run



              sudo apt install --reinstall libpython3.6,-minimal,-stdlib python3.6,-minimal


              You should then find that lsb_release works fine.






              share|improve this answer

























                1












                1








                1







                You can fix your Python installation without fixing lsb_release. Your Python installation needs other Python packages to be reinstalled; at least



                sudo apt install --reinstall libpython3.6-minimal


                and perhaps more. To reinstall all the packages, run



                sudo apt install --reinstall libpython3.6,-minimal,-stdlib python3.6,-minimal


                You should then find that lsb_release works fine.






                share|improve this answer













                You can fix your Python installation without fixing lsb_release. Your Python installation needs other Python packages to be reinstalled; at least



                sudo apt install --reinstall libpython3.6-minimal


                and perhaps more. To reinstall all the packages, run



                sudo apt install --reinstall libpython3.6,-minimal,-stdlib python3.6,-minimal


                You should then find that lsb_release works fine.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 15 at 7:38









                Stephen KittStephen Kitt

                182k25419497




                182k25419497




















                    GTK is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    GTK is a new contributor. Be nice, and check out our Code of Conduct.












                    GTK is a new contributor. Be nice, and check out our Code of Conduct.











                    GTK is a new contributor. Be nice, and check out our Code of Conduct.














                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f512473%2fcircular-dependency-between-lsb-release-and-python3-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

                    Helsingborg Esperantistoj el Helsingborg | Vidu ankaŭ | Navigada menuo1 ŝanĝostabila versiopatrolita1 ŝanĝostabila versiopatrolita56°03′N 12°42′O  /  56.05°N, 12.7°O / 56.05; 12.7 (Helsingborg)56°03′N 12°42′O  /  56.05°N, 12.7°O / 56.05; 12.7 (Helsingborg)Helsingborg en la Vikimedia KomunejoKategorio Helsingborg en la Vikimedia KomunejoHelsingborg en la Vikimedia KomunejoKategorio Helsingborg en la Vikimedia Komunejo

                    Linux Checkpoint SNX tool configuration issuesgetting Checkpoint VPN SSL Network Extender working in the command lineL2TP IPsec VPN client configurationOpenvpn stops respondingIssues with getting a tun0 connection to route any and all connections from eth0 to be made to this interface and if not working dropHow to setup port forwarding properly in FreeBsd 11?Getting certificate verify failed error in a Python applicationssh is unable to connect to server in VPNVPN SSL Network Extender in Firefoxgetting Checkpoint VPN SSL Network Extender working in the command lineisc-dhcp-server configurationUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    NetworkManager fails with “Could not find source connection”Trouble connecting to VPN using network-manager, while command line worksHow can I be notified about state changes to a VPN adapterBacktrack 5 R3 - Refuses to connect to VPNFeed all traffic through OpenVPN for a specific network namespace onlyRun daemon on startup in Debian once openvpn connection establishedpfsense tcp connection between openvpn and lan is brokenInternet connection problem with web browsers onlyWhy does NetworkManager explicitly support tun/tap devices?Browser issues with VPNTwo IP addresses assigned to the same network card - OpenVPN issues?Cannot connect to WiFi with nmcli, although secrets are provided