Sources list error when opening Synaptic Package Manager
When opening Synaptic Package Manager following error occurs:
An error occurred
The following details are provided:
E: Deformed line 1 in sources list /etc/apt/sources.list.d/canonical_partner.list (»URI«)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
What i have to do to correct this?
error-handling
add a comment |
When opening Synaptic Package Manager following error occurs:
An error occurred
The following details are provided:
E: Deformed line 1 in sources list /etc/apt/sources.list.d/canonical_partner.list (»URI«)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
What i have to do to correct this?
error-handling
"When you open Synaptic Package Manager the following error is indicated:"
– Clayton
May 24 '14 at 13:07
"E: Deformed line 1 in source list /etc/apt/sources.list.d/canonical_partner.list"
– Clayton
May 24 '14 at 13:07
add a comment |
When opening Synaptic Package Manager following error occurs:
An error occurred
The following details are provided:
E: Deformed line 1 in sources list /etc/apt/sources.list.d/canonical_partner.list (»URI«)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
What i have to do to correct this?
error-handling
When opening Synaptic Package Manager following error occurs:
An error occurred
The following details are provided:
E: Deformed line 1 in sources list /etc/apt/sources.list.d/canonical_partner.list (»URI«)
E: The list of sources could not be read.
Go to the repository dialog to correct the problem.
E: _cache->open() failed, please report.
What i have to do to correct this?
error-handling
error-handling
edited May 24 '14 at 13:52
TuKsn
3,55511537
3,55511537
asked May 24 '14 at 12:50
user230139user230139
43
43
"When you open Synaptic Package Manager the following error is indicated:"
– Clayton
May 24 '14 at 13:07
"E: Deformed line 1 in source list /etc/apt/sources.list.d/canonical_partner.list"
– Clayton
May 24 '14 at 13:07
add a comment |
"When you open Synaptic Package Manager the following error is indicated:"
– Clayton
May 24 '14 at 13:07
"E: Deformed line 1 in source list /etc/apt/sources.list.d/canonical_partner.list"
– Clayton
May 24 '14 at 13:07
"When you open Synaptic Package Manager the following error is indicated:"
– Clayton
May 24 '14 at 13:07
"When you open Synaptic Package Manager the following error is indicated:"
– Clayton
May 24 '14 at 13:07
"E: Deformed line 1 in source list /etc/apt/sources.list.d/canonical_partner.list"
– Clayton
May 24 '14 at 13:07
"E: Deformed line 1 in source list /etc/apt/sources.list.d/canonical_partner.list"
– Clayton
May 24 '14 at 13:07
add a comment |
3 Answers
3
active
oldest
votes
I'll answer in English. I also know German a bit...but please, try to write in English. I am not english either, and I make this effort. EDIT: Thanks to Xubu-tur for the translation
Try this:
How do I restore the sources.list file?
Probably the sources.list file is corrupted, or something similar. You could try to restore it from the installation media, or downloading it from http://repogen.simplylinux.ch/ (I think that restoring from installation media is always better...)
add a comment |
Your /etc/apt/sources.list.d/canonical_partner.list file is corrupted not /etc/apt/sources.list. So try to replace the contents in that file by running the below command on terminal,
var=$(lsb_release -c | awk '{print $2}'); sudo sed -ri "1s:^(.*)$:deb http://archive.canonical.com/ $var partner:g" /etc/apt/sources.list.d/canonical_partner.list
It replaces the corrupted line with the accurate line for your Ubuntu release.
And finally don't forget to update the repositories by running sudo apt-get update command on terminal.
add a comment |
I just had the same problem.
The above command did not work at all. But upon inspection of the sources.list file, I saw a line that didn't belong there. I remember trying to add a custom package path. (it didn't work btw) This manual adding of a location was done within the package manager itself. This method cant be used again since the package manager doesn't launch any more because of the line I added. Trying to remove the line using text editor did not work either. The file would only open in read only mode.
Run terminal as root or super user.
(YOU ARE ABOUT TO USE A VERY POWERFUL TOOL IN SUPERUSER MODE. BE VERY CAREFUL)
type:
vi /etc/apt/sources.list
This should open a text editor within the terminal
use arrow keys to navigate to the invalid line.
ALL VALID LINED SHOULD START WITH DEB
on your keyboard tap dd while the cursor is in the invalid line (the d key x2)
NOWHERE ELSE
If the line is successfully removed, hold down shift and tap zz (the z key x2)
Rather exit the terminal and call a professional if something goes wrong.
add a comment |
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
});
}
});
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%2faskubuntu.com%2fquestions%2f471483%2fsources-list-error-when-opening-synaptic-package-manager%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I'll answer in English. I also know German a bit...but please, try to write in English. I am not english either, and I make this effort. EDIT: Thanks to Xubu-tur for the translation
Try this:
How do I restore the sources.list file?
Probably the sources.list file is corrupted, or something similar. You could try to restore it from the installation media, or downloading it from http://repogen.simplylinux.ch/ (I think that restoring from installation media is always better...)
add a comment |
I'll answer in English. I also know German a bit...but please, try to write in English. I am not english either, and I make this effort. EDIT: Thanks to Xubu-tur for the translation
Try this:
How do I restore the sources.list file?
Probably the sources.list file is corrupted, or something similar. You could try to restore it from the installation media, or downloading it from http://repogen.simplylinux.ch/ (I think that restoring from installation media is always better...)
add a comment |
I'll answer in English. I also know German a bit...but please, try to write in English. I am not english either, and I make this effort. EDIT: Thanks to Xubu-tur for the translation
Try this:
How do I restore the sources.list file?
Probably the sources.list file is corrupted, or something similar. You could try to restore it from the installation media, or downloading it from http://repogen.simplylinux.ch/ (I think that restoring from installation media is always better...)
I'll answer in English. I also know German a bit...but please, try to write in English. I am not english either, and I make this effort. EDIT: Thanks to Xubu-tur for the translation
Try this:
How do I restore the sources.list file?
Probably the sources.list file is corrupted, or something similar. You could try to restore it from the installation media, or downloading it from http://repogen.simplylinux.ch/ (I think that restoring from installation media is always better...)
edited Apr 13 '17 at 12:24
Community♦
1
1
answered May 24 '14 at 12:59
Giacomo FabrisGiacomo Fabris
413
413
add a comment |
add a comment |
Your /etc/apt/sources.list.d/canonical_partner.list file is corrupted not /etc/apt/sources.list. So try to replace the contents in that file by running the below command on terminal,
var=$(lsb_release -c | awk '{print $2}'); sudo sed -ri "1s:^(.*)$:deb http://archive.canonical.com/ $var partner:g" /etc/apt/sources.list.d/canonical_partner.list
It replaces the corrupted line with the accurate line for your Ubuntu release.
And finally don't forget to update the repositories by running sudo apt-get update command on terminal.
add a comment |
Your /etc/apt/sources.list.d/canonical_partner.list file is corrupted not /etc/apt/sources.list. So try to replace the contents in that file by running the below command on terminal,
var=$(lsb_release -c | awk '{print $2}'); sudo sed -ri "1s:^(.*)$:deb http://archive.canonical.com/ $var partner:g" /etc/apt/sources.list.d/canonical_partner.list
It replaces the corrupted line with the accurate line for your Ubuntu release.
And finally don't forget to update the repositories by running sudo apt-get update command on terminal.
add a comment |
Your /etc/apt/sources.list.d/canonical_partner.list file is corrupted not /etc/apt/sources.list. So try to replace the contents in that file by running the below command on terminal,
var=$(lsb_release -c | awk '{print $2}'); sudo sed -ri "1s:^(.*)$:deb http://archive.canonical.com/ $var partner:g" /etc/apt/sources.list.d/canonical_partner.list
It replaces the corrupted line with the accurate line for your Ubuntu release.
And finally don't forget to update the repositories by running sudo apt-get update command on terminal.
Your /etc/apt/sources.list.d/canonical_partner.list file is corrupted not /etc/apt/sources.list. So try to replace the contents in that file by running the below command on terminal,
var=$(lsb_release -c | awk '{print $2}'); sudo sed -ri "1s:^(.*)$:deb http://archive.canonical.com/ $var partner:g" /etc/apt/sources.list.d/canonical_partner.list
It replaces the corrupted line with the accurate line for your Ubuntu release.
And finally don't forget to update the repositories by running sudo apt-get update command on terminal.
answered May 24 '14 at 14:45
Avinash RajAvinash Raj
52.5k41168219
52.5k41168219
add a comment |
add a comment |
I just had the same problem.
The above command did not work at all. But upon inspection of the sources.list file, I saw a line that didn't belong there. I remember trying to add a custom package path. (it didn't work btw) This manual adding of a location was done within the package manager itself. This method cant be used again since the package manager doesn't launch any more because of the line I added. Trying to remove the line using text editor did not work either. The file would only open in read only mode.
Run terminal as root or super user.
(YOU ARE ABOUT TO USE A VERY POWERFUL TOOL IN SUPERUSER MODE. BE VERY CAREFUL)
type:
vi /etc/apt/sources.list
This should open a text editor within the terminal
use arrow keys to navigate to the invalid line.
ALL VALID LINED SHOULD START WITH DEB
on your keyboard tap dd while the cursor is in the invalid line (the d key x2)
NOWHERE ELSE
If the line is successfully removed, hold down shift and tap zz (the z key x2)
Rather exit the terminal and call a professional if something goes wrong.
add a comment |
I just had the same problem.
The above command did not work at all. But upon inspection of the sources.list file, I saw a line that didn't belong there. I remember trying to add a custom package path. (it didn't work btw) This manual adding of a location was done within the package manager itself. This method cant be used again since the package manager doesn't launch any more because of the line I added. Trying to remove the line using text editor did not work either. The file would only open in read only mode.
Run terminal as root or super user.
(YOU ARE ABOUT TO USE A VERY POWERFUL TOOL IN SUPERUSER MODE. BE VERY CAREFUL)
type:
vi /etc/apt/sources.list
This should open a text editor within the terminal
use arrow keys to navigate to the invalid line.
ALL VALID LINED SHOULD START WITH DEB
on your keyboard tap dd while the cursor is in the invalid line (the d key x2)
NOWHERE ELSE
If the line is successfully removed, hold down shift and tap zz (the z key x2)
Rather exit the terminal and call a professional if something goes wrong.
add a comment |
I just had the same problem.
The above command did not work at all. But upon inspection of the sources.list file, I saw a line that didn't belong there. I remember trying to add a custom package path. (it didn't work btw) This manual adding of a location was done within the package manager itself. This method cant be used again since the package manager doesn't launch any more because of the line I added. Trying to remove the line using text editor did not work either. The file would only open in read only mode.
Run terminal as root or super user.
(YOU ARE ABOUT TO USE A VERY POWERFUL TOOL IN SUPERUSER MODE. BE VERY CAREFUL)
type:
vi /etc/apt/sources.list
This should open a text editor within the terminal
use arrow keys to navigate to the invalid line.
ALL VALID LINED SHOULD START WITH DEB
on your keyboard tap dd while the cursor is in the invalid line (the d key x2)
NOWHERE ELSE
If the line is successfully removed, hold down shift and tap zz (the z key x2)
Rather exit the terminal and call a professional if something goes wrong.
I just had the same problem.
The above command did not work at all. But upon inspection of the sources.list file, I saw a line that didn't belong there. I remember trying to add a custom package path. (it didn't work btw) This manual adding of a location was done within the package manager itself. This method cant be used again since the package manager doesn't launch any more because of the line I added. Trying to remove the line using text editor did not work either. The file would only open in read only mode.
Run terminal as root or super user.
(YOU ARE ABOUT TO USE A VERY POWERFUL TOOL IN SUPERUSER MODE. BE VERY CAREFUL)
type:
vi /etc/apt/sources.list
This should open a text editor within the terminal
use arrow keys to navigate to the invalid line.
ALL VALID LINED SHOULD START WITH DEB
on your keyboard tap dd while the cursor is in the invalid line (the d key x2)
NOWHERE ELSE
If the line is successfully removed, hold down shift and tap zz (the z key x2)
Rather exit the terminal and call a professional if something goes wrong.
answered Feb 14 at 20:53
ferretferret
1
1
add a comment |
add a comment |
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.
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%2faskubuntu.com%2fquestions%2f471483%2fsources-list-error-when-opening-synaptic-package-manager%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
"When you open Synaptic Package Manager the following error is indicated:"
– Clayton
May 24 '14 at 13:07
"E: Deformed line 1 in source list /etc/apt/sources.list.d/canonical_partner.list"
– Clayton
May 24 '14 at 13:07