problems with Ubuntu 18.04 update
Hello,
I was updating Ubuntu 18.04 on my dell 1500 laptop and received the following errors.
Can you tell me how to fix these errors?
Thank you,
Err:10 http://
403 Forbidden [IP: 88.191.250.2 80]
Reading package lists... Done
E: Failed to fetch http://
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Target Sources (Sources) is configured multiple times in /etc/apt/
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Do these 3rd party sources support Bionic?
Revision history for this message
|
#2 |
Are you sure that the information about adding a videolan server as additional source is still valid for Ubuntu 18.04?
I suggest that you delete the /etc/apt/
see https:/
Revision history for this message
|
#3 |
Hello,
I do not know how to : delete the /etc/apt/
can you give me step by step instructions please.
Revision history for this message
|
#4 |
Here is some additional information
This is the copy of the source list but I do know what to do with it and would not know if there is anything wrong here.
# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
deb-src http://
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
# deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository may not have been tested as
## extensively as that
Revision history for this message
|
#5 |
davidzaq1; Hey -
see: http://
The videolan should be removed as Manfred suggests.
then also there is the duplication of sources.
show us the output of:
tail -v -n +1 /etc/apt/
So I know exactly what you are working with.
-ain't nothing but a thing-
Revision history for this message
|
#6 |
1. I do not know what you are doing with your sources.list file, but the security repositories (the fastest way to distribute security-relevant updates) is missing in your configuration. When reading your previous questions I can see that they were enabled three weeks ago, but at that time for an outdated Ubuntu release.
Your current sources.list file has a strange mixture between a UK mirror and the US country server. You should make up your mind in what part of the world you are located, and use the nearest reasonable server.
2. "how to delete the /etc/apt/
Open a terminal window and execute the command
sudo rm /etc/apt/
Revision history for this message
|
#7 |
Hello,
Thank you for your reply.
As for the advice to delete the files from #2 above.
I would be happy to do this but do not know how.
I need some help with this if you can do that for me.
I cannot access the source list. I have tried to do everything to get into this but it wont take me to where I need to go.
I need help with this also.
As for the commands in #5 above, here is the output:
$ tail -v -n +1 /etc/apt/
==> /etc/apt/
deb-src http://
deb http://
deb-src http://
==> /etc/apt/
deb http://
# deb-src http://
==> /etc/apt/
deb http://
# deb-src http://
Thank you,
David
Revision history for this message
|
#9 |
No, the above was a mistake.
I need to know how to follow the advice from #2.
delete the /etc/apt/
and
install the libdvd-pkg package.
Thank you
David
Revision history for this message
|
#10 |
Have you read item 2. in comment #6?
Revision history for this message
|
#11 |
Yes. but I am still having problems
I ran this command: cat /etc/apt/
$ cat /etc/apt/
# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
deb-src http://
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
# deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://
deb-src http://
# deb-src http://
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://
# deb-src http://
deb http://
deb-src http://
# deb-src http://
deb http://
# deb-src http://
deb http://
deb http://
deb-src http://
# deb-src http://
# deb http://
# deb-src http://
stan@roo:~$
Maybe you can tell me how to fix this.
Revision history for this message
|
#12 |
What problem do you still have?
On a first glimpse the sources.list file does not look wrong.
The only question is whether you need the source repositories enabled. This would only be required if you build your own version of packages locally.
Revision history for this message
|
#13 |
When I do a apt-get update i receive error messages saying the /etc is messed up and I am trying to find out how to fix it.
This is the message I am getting:
W: Target Sources (restricted/
W: Target Sources (restricted/
I am trying to fix this so there is no error;
Thank you
Revision history for this message
|
#14 |
I have no idea how the sources.list file could be messed up like this except by manually fiddling around.
Use the information in the error message to identify the cause:
Look at line 2 of /etc/apt/
line 2: deb-src http://
line 7: deb-src http://
There are references to "restricted" in both of them.
Proposal for a solution: edit the /etc/apt/
As already written in my previous comment: Why did you enable the sources repositories at all? Do you compile your own versions of packages locally? If not, you should disable (untick) "source" in software-
Revision history for this message
|
#15 |
Hello,
I am having a problem with your instructions. I do not understand what you are asking me to do.
I clicked on the link above which starts: line 2: deb
this is all that shows up:
[DIR] dists/ 2018-05-01 18:56 -
[DIR] indices/ 2018-07-12 01:12 -
[ ] ls-lR.gz 2018-07-12 01:18 14M
[DIR] pool/ 2010-02-27 06:30 -
[DIR] project/ 2013-06-28 11:52 -
[DIR] ubuntu/ 2018-07-12 01:20 -
Also, you said to look at line 2 of /etc/apt/
This is all that shows up:
$ /etc/apt/
bash: /etc/apt/
I also tried sudo /etc/apt/
I got this message:
sudo: /etc/apt/
I do not know how to do the things you are asking me to do. Nothing seems to work.
Can you give me more detailed instructions
Thanks,
Revision history for this message
|
#16 |
sudo gedit /etc/apt/
This will allow you to edit the file
Revision history for this message
|
#17 |
Hello,
I got to the source list and ran the command.
As instructed, I removed "restricted from line 7.
I received following WARNING messages:
$ sudo gedit /etc/apt/
[sudo] password for stan:
** (gedit:6978): WARNING **: 20:24:29.781: Set document metadata failed: Setting attribute metadata:
** (gedit:6978): WARNING **: 20:24:29.789: Set document metadata failed: Setting attribute metadata:
** (gedit:6978): WARNING **: 20:24:53.942: Set document metadata failed: Setting attribute metadata:
** (gedit:6978): WARNING **: 20:24:53.943: Set document metadata failed: Setting attribute metadata:
** (gedit:6978): WARNING **: 20:24:58.885: Set document metadata failed: Setting attribute metadata:
Revision history for this message
|
#18 |
These warning messages ("Set document metadata failed") can safely be ignored.
Does "sudo apt-get update" still show warnings and/or errors, or is this issue now resolved?
General remark:
I recommend that you try getting hold of some "getting started with Ubuntu" tutorial, if you still cannot understand basic instruction after eight years of using Ubuntu (you created you first question eight years ago!)
Revision history for this message
|
#19 |
sudo apt-get update is till giving the following message:
W: Target Sources (restricted/
W: Target Sources (restricted/
Revision history for this message
|
#20 |
Still getting warning messages also:
$ sudo gedit /etc/apt/
** (gedit:6148): WARNING **: 13:05:12.887: Set document metadata failed: Setting attribute metadata:
** (gedit:6148): WARNING **: 13:05:12.890: Set document metadata failed: Setting attribute metadata:
** (gedit:6148): WARNING **: 13:05:17.092: Set document metadata failed: Setting attribute metadata:
Revision history for this message
|
#21 |
In comment #17 you wrote that you have removed the double "restricted".
How is it possible that it is still there?
Revision history for this message
|
#22 |
What is the output of:
cat -n /etc/apt/
Thanks
Revision history for this message
|
#23 |
Here is the output from above:
:~$ cat -n /etc/apt/
1 # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
2 deb-src http://
3
4 # See http://
5 # newer versions of the distribution.
6 deb http://
7 deb-src http://
8 # deb-src http://
9
10 ## Major bug fix updates produced after the final release of the
stan@roo:~$
Also, here is what is in the source list. I removed the restrictios but maybe you can find the problem.
# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
deb-src http://
# See http://
# newer versions of the distribution.
deb http://
deb-src http://
# deb-src http://
## Major bug fix updates produced after the final release of the
## distribution.
deb http://
deb-src http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://
# deb-src http://
deb http://
# deb-src http://
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://
deb-src http://
# deb-src http://
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://
# deb-src http://
deb http://
deb-src http://
# deb-src http://
deb http://
# deb-src http://
deb http://
deb http://
deb-src http://
Revision history for this message
|
#24 |
OK, run:
sudo gedit /etc/apt /sources.list
Delete the second line from the file. Which will read:
deb-src http://
Save the new file, close gedit and run:
sudo apt-get update
Is it OK now please?
Revision history for this message
|
#25 |
We cannot help if you do not follow our advice.
Two days ago I already recommended to disable ALL deb-src references:
Start the program software-
Revision history for this message
|
#26 |
Hello Andrew,
Thank you for your answer.
I ran the command as you suggested and deleted like #2.
Than ran the update.
Everything is working just fine now.
All I needed was the right instruction.
Thank you so much!
Have a great day.
David
Revision history for this message
|
#27 |
Thanks Manfred Hampl, that solved my question.