Not being able to install anything or use apt-get update from the terminal Announcing the...

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

What does this icon in iOS Stardew Valley mean?

Why do people hide their license plates in the EU?

3 doors, three guards, one stone

When do you get frequent flier miles - when you buy, or when you fly?

String `!23` is replaced with `docker` in command line

Why did the rest of the Eastern Bloc not invade Yugoslavia?

How to call a function with default parameter through a pointer to function that is the return of another function?

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

Output the ŋarâþ crîþ alphabet song without using (m)any letters

How come Sam didn't become Lord of Horn Hill?

Fundamental Solution of the Pell Equation

Generate an RGB colour grid

How to answer "Have you ever been terminated?"

How does debian/ubuntu knows a package has a updated version

Why is "Consequences inflicted." not a sentence?

Gordon Ramsay Pudding Recipe

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

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

How widely used is the term Treppenwitz? Is it something that most Germans know?

Error "illegal generic type for instanceof" when using local classes

Why did the IBM 650 use bi-quinary?

If a contract sometimes uses the wrong name, is it still valid?

Why are there no cargo aircraft with "flying wing" design?



Not being able to install anything or use apt-get update from the terminal



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Community Moderator Election Results
Why I closed the “Why is Kali so hard” questionApt-Get Install Unmet Dependenciesapt-get update and package authenticationHow do you fix apt-get update “Hash Sum mismatch”When and why should I use apt-get update?apt-get install gives 404 not found, but URL works{14.04 Elementary OS} sudo apt-get update - Failed to Fetch (Also Software Center doesn't open)apt-get update returns error 404 because of iceweaselapt-get update with https sources brokenPackage breaks when upgrading from Debian stable to testingapt-get 'deb' is not known in /etc/apt/sources.list





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







1















I am using Elementary OS. When I try to sudo apt-get update or just try to install something through the terminal, I get this message and I have no idea what to do:



E: Type '>' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.









share|improve this question









New contributor




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



























    1















    I am using Elementary OS. When I try to sudo apt-get update or just try to install something through the terminal, I get this message and I have no idea what to do:



    E: Type '>' is not known on line 1 in source list /etc/apt/sources.list
    E: The list of sources could not be read.









    share|improve this question









    New contributor




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























      1












      1








      1








      I am using Elementary OS. When I try to sudo apt-get update or just try to install something through the terminal, I get this message and I have no idea what to do:



      E: Type '>' is not known on line 1 in source list /etc/apt/sources.list
      E: The list of sources could not be read.









      share|improve this question









      New contributor




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












      I am using Elementary OS. When I try to sudo apt-get update or just try to install something through the terminal, I get this message and I have no idea what to do:



      E: Type '>' is not known on line 1 in source list /etc/apt/sources.list
      E: The list of sources could not be read.






      apt elementary-os






      share|improve this question









      New contributor




      mymuscleshurt 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




      mymuscleshurt 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 48 mins ago









      Rui F Ribeiro

      42.1k1484142




      42.1k1484142






      New contributor




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









      asked 5 hours ago









      mymuscleshurtmymuscleshurt

      63




      63




      New contributor




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





      New contributor





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






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






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Your course of action is printed right in that first error: open up the file /etc/apt/sources.list in your editor of choice and fix whatever is wrong with the first line.



          If you can't spot it, please update your question to include the offending line from the file.






          share|improve this answer































            0














            The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again).



            First, you need to open the file containing the bad entry. The filename is given in the error message, in your example /etc/apt/sources.list.d/some-ppa.list. Open a terminal, and type



            sudo nano /etc/apt/sources.list.d/some-ppa.list


            and press Enter. After entering your password, you should now see the file opened in the text editor nano.



            Now you need to locate the malformed entry. It should be on the line number given in the error message - in your case that would be line 1.



            This line should be incomplete and start with the unknown type the update process is complaining about (here >). Just delete the whole line, and save/close the file with Ctrl+X.



            That's it. You should now be able to successfully run the update process!



            If that entry is all that's in the file, then you can just delete the file. To do this, just open a terminal and run the following command:



            sudo rm /etc/apt/sources.list.d/some-ppa.list





            share|improve this answer








            New contributor




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





















              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
              });


              }
              });






              mymuscleshurt 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%2f512889%2fnot-being-able-to-install-anything-or-use-apt-get-update-from-the-terminal%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Your course of action is printed right in that first error: open up the file /etc/apt/sources.list in your editor of choice and fix whatever is wrong with the first line.



              If you can't spot it, please update your question to include the offending line from the file.






              share|improve this answer




























                1














                Your course of action is printed right in that first error: open up the file /etc/apt/sources.list in your editor of choice and fix whatever is wrong with the first line.



                If you can't spot it, please update your question to include the offending line from the file.






                share|improve this answer


























                  1












                  1








                  1







                  Your course of action is printed right in that first error: open up the file /etc/apt/sources.list in your editor of choice and fix whatever is wrong with the first line.



                  If you can't spot it, please update your question to include the offending line from the file.






                  share|improve this answer













                  Your course of action is printed right in that first error: open up the file /etc/apt/sources.list in your editor of choice and fix whatever is wrong with the first line.



                  If you can't spot it, please update your question to include the offending line from the file.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 5 hours ago









                  EgonEgon

                  506




                  506

























                      0














                      The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again).



                      First, you need to open the file containing the bad entry. The filename is given in the error message, in your example /etc/apt/sources.list.d/some-ppa.list. Open a terminal, and type



                      sudo nano /etc/apt/sources.list.d/some-ppa.list


                      and press Enter. After entering your password, you should now see the file opened in the text editor nano.



                      Now you need to locate the malformed entry. It should be on the line number given in the error message - in your case that would be line 1.



                      This line should be incomplete and start with the unknown type the update process is complaining about (here >). Just delete the whole line, and save/close the file with Ctrl+X.



                      That's it. You should now be able to successfully run the update process!



                      If that entry is all that's in the file, then you can just delete the file. To do this, just open a terminal and run the following command:



                      sudo rm /etc/apt/sources.list.d/some-ppa.list





                      share|improve this answer








                      New contributor




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

























                        0














                        The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again).



                        First, you need to open the file containing the bad entry. The filename is given in the error message, in your example /etc/apt/sources.list.d/some-ppa.list. Open a terminal, and type



                        sudo nano /etc/apt/sources.list.d/some-ppa.list


                        and press Enter. After entering your password, you should now see the file opened in the text editor nano.



                        Now you need to locate the malformed entry. It should be on the line number given in the error message - in your case that would be line 1.



                        This line should be incomplete and start with the unknown type the update process is complaining about (here >). Just delete the whole line, and save/close the file with Ctrl+X.



                        That's it. You should now be able to successfully run the update process!



                        If that entry is all that's in the file, then you can just delete the file. To do this, just open a terminal and run the following command:



                        sudo rm /etc/apt/sources.list.d/some-ppa.list





                        share|improve this answer








                        New contributor




                        gopika 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







                          The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again).



                          First, you need to open the file containing the bad entry. The filename is given in the error message, in your example /etc/apt/sources.list.d/some-ppa.list. Open a terminal, and type



                          sudo nano /etc/apt/sources.list.d/some-ppa.list


                          and press Enter. After entering your password, you should now see the file opened in the text editor nano.



                          Now you need to locate the malformed entry. It should be on the line number given in the error message - in your case that would be line 1.



                          This line should be incomplete and start with the unknown type the update process is complaining about (here >). Just delete the whole line, and save/close the file with Ctrl+X.



                          That's it. You should now be able to successfully run the update process!



                          If that entry is all that's in the file, then you can just delete the file. To do this, just open a terminal and run the following command:



                          sudo rm /etc/apt/sources.list.d/some-ppa.list





                          share|improve this answer








                          New contributor




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










                          The error indicates a malformed entry in a source file, which causes the update process to abort. To fix it, you have to either fix the entry (if you know what the right entry should look like) or remove it altogether (that's what I'm going to describe, as it's the fastest way to enable you to update your system again).



                          First, you need to open the file containing the bad entry. The filename is given in the error message, in your example /etc/apt/sources.list.d/some-ppa.list. Open a terminal, and type



                          sudo nano /etc/apt/sources.list.d/some-ppa.list


                          and press Enter. After entering your password, you should now see the file opened in the text editor nano.



                          Now you need to locate the malformed entry. It should be on the line number given in the error message - in your case that would be line 1.



                          This line should be incomplete and start with the unknown type the update process is complaining about (here >). Just delete the whole line, and save/close the file with Ctrl+X.



                          That's it. You should now be able to successfully run the update process!



                          If that entry is all that's in the file, then you can just delete the file. To do this, just open a terminal and run the following command:



                          sudo rm /etc/apt/sources.list.d/some-ppa.list






                          share|improve this answer








                          New contributor




                          gopika 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 answer



                          share|improve this answer






                          New contributor




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









                          answered 1 hour ago









                          gopikagopika

                          1




                          1




                          New contributor




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





                          New contributor





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






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






















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










                              draft saved

                              draft discarded


















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













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












                              mymuscleshurt 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%2f512889%2fnot-being-able-to-install-anything-or-use-apt-get-update-from-the-terminal%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

                              Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

                              Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

                              Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...