LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2018, 11:47 PM   #1
david1089
LQ Newbie
 
Registered: Jun 2018
Posts: 5

Rep: Reputation: Disabled
Question Error message being received while attempting to update linux debian via terminal using sudo apt-get update


Hello,

While entering the sudo apt-get command in my linux debian konsole terminal,I receive the following error message after the terminal finishes reading the package lists-

"The repository 'cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21] stretch Release' does not have a Release file."

After this, it also says-"Data from such a repository can't be authenticated and is therefore potentially dangerous to use."

and...

"See apt-secure(8) manpage for repository creation and user configuration details"

this is also followed by the following lines-

"W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons-hidpi (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
W: Target DEP-11-icons-hidpi (main/dep11/icons-128x128.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list.d/google-chrome.list:3
"

Since I am relatively new to linux debian, I do not really know or I cannot figure out how to resolve this error message. I had completed the debian installation via the dvd-rom iso image. Is there a method or command to clear this out because I am not sure if it may affect me while attempting major updates later on?

If this can be resolved via a command or by changing the mirror sources, then please do give me some helpful advice.
 
Old 06-14-2018, 06:39 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,925

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
these are warnings and will not cause any problem. You need to check the file /etc/apt/sources.list, but you are relatively new to linux and it is not so important.
 
1 members found this post helpful.
Old 06-14-2018, 10:29 AM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Like pan64 states, it won't be harmful. But you will only be able to install from DVD. If you have an internet connection it is preferred to point to an on-line repo.

Code:
# You can comment out the lines referring to DVD by placing a '#' in front of
# the line. And add these lines below:
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contrib non-free
You can use the nano editor.

jlinkels
 
1 members found this post helpful.
Old 06-14-2018, 11:19 AM   #4
trumpforprez
Member
 
Registered: Nov 2016
Location: UK
Distribution: Debian Jessie
Posts: 154

Rep: Reputation: Disabled
Quote:
Originally Posted by david1089 View Post
Hello,

While entering the sudo apt-get command in my linux debian konsole terminal,I receive the following error message after the terminal finishes reading the package lists-
There is no sudo command in Debian. It is not recognised.
The command used to get root privilege is 'su'.
You use the sudo command in Ubuntu.

Quote:
"The repository 'cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21] stretch Release' does not have a Release file."
It looks like this is not updating from a repository but from a cdrom.

Also, the data on the cdrom is a binary version of debian Stretch.
Why are you using binary code to install a linux distro?
You should be using source code.

The term 'open-source' means that the source code is open to everyone so they can read it.
Once we can read the source code we can see what a program is doing.
And if we can read the source code we can also see if there is malware or spyware.

This is why 'open-source' is important.
But you can't do that if the code is binary. It's just a lot of 1s and 0s.
Binary code is not readable by human beings - not even you.
Binary code is for computers to read.

Quote:
After this, it also says-"Data from such a repository can't be authenticated
This means the binary code on your cdrom is not source code.
Because it is not source code - human beings cannot read it.
If the code cannot be read then it cannot be authenticated.


Quote:
and is therefore potentially dangerous to use."
This means that because the code cannot be read - then it could be dangerous.
There could be malware or spyware in the code but it can't be read because it is binary and not source code.

Quote:
"See apt-secure(8) manpage for repository creation and user configuration details"
This means your /etc/apt/sources.list is messed up.
You need to 'comment out' the entry which is 'cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1' in your /etc/apt/sources.list.
After that try using 'apt-get update'.

But please don't install anything from its binary code.
Only install from source code which can be read and authenticated.

Edit: I have just realised that members above have already given more helpful info.

Last edited by trumpforprez; 06-14-2018 at 11:26 AM.
 
Old 06-14-2018, 12:08 PM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by trumpforprez View Post
There is no sudo command in Debian. It is not recognised.
The command used to get root privilege is 'su'.
You use the sudo command in Ubuntu.
Incorrect. As far as I am aware, there is no sudo command in a minimum installation of Debian. Otherwise, if you do not specify a password for root during installation then sudo is installed.

https://wiki.debian.org/sudo

Quote:
Originally Posted by trumpforprez View Post
Also, the data on the cdrom is a binary version of debian Stretch.
Why are you using binary code to install a linux distro?
You should be using source code.
There are no problems in installing binary versions of packages in Debian, or any other distro (except perhaps Gentoo and similar), if you are doing so from the repositories or from an install medium obtained and verified as being from the distro maintainers. We are not here to give bad, confusing, advice to newbies. Your advice has nothing to do with the OP's problem.

Quote:
Originally Posted by trumpforprez View Post
This means the binary code on your cdrom is not source code.
Because it is not source code - human beings cannot read it.
If the code cannot be read then it cannot be authenticated.
This is not the authentication error being encountered by the OP and you should be well aware of this. The Release file contains a digital verification of the authenticity of a package, not of its source code having been read by human beings.

Quote:
Originally Posted by trumpforprez View Post
This means your /etc/apt/sources.list is messed up.
You need to 'comment out' the entry which is 'cdrom://[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1' in your /etc/apt/sources.list.
After that try using 'apt-get update'.
Finally we get to the actual problem.

@OP: please paste the output from the following command:

Code:
for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done

Last edited by hydrurga; 06-14-2018 at 12:20 PM.
 
Old 06-14-2018, 03:10 PM   #6
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
trumpforprez: if your explanation is not a prank or an attempt to being funny, please read thoroughly through the Debian documentation to gain knowledge of the Debian package managemant. In any case, please refrain from posting these completely incorrect statements, unless you are sure your contribution reflect correct facts.

Debian has a sudo command, it is installed by default and it is the recommended way to gain access to administrative tasks.

Installing Debian binaries is the recommended way of installing software. Source packages are hardly ever installed in Debian unless you have an important reason to do so. Which is certainly beyond the scope for new users.

Binaries are authenticated by hash checksums. No source is ever involved.

The OP sources.list is not messed up, it rather contains a pointer to the repository on DVD. Which is as such totally correct, but it is preferred to replace it with an on-line repository if internet access is available.

jlinkels

jlinkels

Last edited by jlinkels; 06-14-2018 at 03:13 PM.
 
2 members found this post helpful.
Old 06-14-2018, 08:30 PM   #7
david1089
LQ Newbie
 
Registered: Jun 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Alright, thanks for the help!
 
Old 06-15-2018, 04:05 AM   #8
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by david1089 View Post
Alright, thanks for the help!
Did you resolve the problem?
 
Old 06-15-2018, 09:28 PM   #9
david1089
LQ Newbie
 
Registered: Jun 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hydrurga View Post
Did you resolve the problem?
Yes, after commenting the dvd section out and changing my download sources, I was able to solve the issue.

Since I have an internet connection, I thought this to be the better way.

Regards,
david1089
 
Old 06-15-2018, 09:37 PM   #10
david1089
LQ Newbie
 
Registered: Jun 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
hydryrga : With regards to your request to type in the following code -

for i in /etc/apt/sources.list{,.d/*}; do echo file: $i; cat $i; echo ====; done

here is the result that is being received-

file: /etc/apt/sources.list
deb http://dl.google.com/linux/chrome/deb/ stable main

deb http://ftp.us.debian.org/debian stretch main contrib non-free#

# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main

# deb cdrom:[Debian GNU/Linux 9.4.0 _Stretch_ - Official amd64 DVD Binary-1 20180310-11:21]/ stretch contrib main
deb http://httpredir.debian.org/debian/ stretch main contrib non-free
deb http://security.debian.org/ stretch/updates main contib non-free
deb http://ftp.se.debian.org/debian/ stretch main
deb-src http://ftp.se.debian.org/debian/ stretch main

deb http://security.debian.org/debian-security stretch/updates main contrib
deb-src http://security.debian.org/debian-security stretch/updates main contrib

# stretch-updates, previously known as 'volatile'
deb http://ftp.se.debian.org/debian/ stretch-updates main contrib
deb-src http://ftp.se.debian.org/debian/ stretch-updates main contrib
====
file: /etc/apt/sources.list.d/google-chrome.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
====

Are there any modifications that you suggest me to make to the sources.list? If so, please do tell me.
 
Old 06-15-2018, 10:29 PM   #11
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Hi David. Thanks for posting that.

Here's the page I use as my reference: https://wiki.debian.org/SourcesList

My comments would be that:

. You have the principal repos listed three times in:

Code:
deb http://ftp.us.debian.org/debian stretch main contrib non-free# (which shouldn't have a # at the end)

deb http://httpredir.debian.org/debian/ stretch main contrib non-free

deb http://ftp.se.debian.org/debian/ stretch main
I would either only keep the second of these, or only keep the third and add contrib and non-free to it.

. Your first security repo line:

Code:
deb http://security.debian.org/ stretch/updates main contib non-free
has a typo: contib should be contrib. In any case, you repeat the security repo later on, so would be best to delete this first line altogether.

. You have the Google Chrome repo listed twice, at the beginning and the end. I would delete the one in the main sources.list file (keep the one with the arch=amd64 segment).

. You don't have non-free enabled for stretch-updates and the security repos. It's a matter of choice but it is incongruous with your inclusion of non-free for the principal repos.

In general your software sources are in a bit of a mess and need cleaning up.

Last edited by hydrurga; 06-15-2018 at 10:33 PM.
 
Old 06-16-2018, 01:00 AM   #12
david1089
LQ Newbie
 
Registered: Jun 2018
Posts: 5

Original Poster
Rep: Reputation: Disabled
Alright, will fix that as soon as possible. THANKS!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in sudo apt-get update Gcefalu Linux - Newbie 3 11-10-2017 06:33 PM
sudo apt-get update error iHateErrors Linux - Newbie 42 02-20-2016 02:25 PM
sudo apt-get update ERROR HELP linuxmarble Linux - Software 2 09-02-2014 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration