Not being able to install anything or use apt-get update from the terminal Announcing the...
List *all* the tuples!
How discoverable are IPv6 addresses and AAAA names by potential attackers?
Why aren't air breathing engines used as small first stages
Why are Kinder Surprise Eggs illegal in the USA?
Gordon Ramsay Pudding Recipe
What would be the ideal power source for a cybernetic eye?
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
Why is "Consequences inflicted." not a sentence?
How to find out what spells would be useless to a blind NPC spellcaster?
What does the "x" in "x86" represent?
Why did the IBM 650 use bi-quinary?
Why did the Falcon Heavy center core fall off the ASDS OCISLY barge?
Can I cast Passwall to drop an enemy into a 20-foot pit?
What does this icon in iOS Stardew Valley mean?
What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?
How to answer "Have you ever been terminated?"
porting install scripts : can rpm replace apt?
If a contract sometimes uses the wrong name, is it still valid?
Identifying polygons that intersect with another layer using QGIS?
How to align text above triangle figure
List of Python versions
How to find all the available tools in mac terminal?
When do you get frequent flier miles - when you buy, or when you fly?
Why is my conclusion inconsistent with the van't Hoff equation?
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;
}
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
apt elementary-os
New contributor
New contributor
edited 43 mins ago
Rui F Ribeiro
42.1k1484142
42.1k1484142
New contributor
asked 5 hours ago
mymuscleshurtmymuscleshurt
63
63
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
add a comment |
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
New contributor
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered 5 hours ago
EgonEgon
506
506
add a comment |
add a comment |
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
New contributor
answered 1 hour ago
gopikagopika
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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