LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Error message being received while attempting to update linux debian via terminal using sudo apt-get update (https://www.linuxquestions.org/questions/linux-newbie-8/error-message-being-received-while-attempting-to-update-linux-debian-via-terminal-using-sudo-apt-get-update-4175631907/)

david1089 06-13-2018 11:47 PM

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.

pan64 06-14-2018 06:39 AM

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.

jlinkels 06-14-2018 10:29 AM

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

trumpforprez 06-14-2018 11:19 AM

Quote:

Originally Posted by david1089 (Post 5867345)
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.

hydrurga 06-14-2018 12:08 PM

Quote:

Originally Posted by trumpforprez (Post 5867592)
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 (Post 5867592)
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 (Post 5867592)
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 (Post 5867592)
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

jlinkels 06-14-2018 03:10 PM

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

david1089 06-14-2018 08:30 PM

Alright, thanks for the help!

hydrurga 06-15-2018 04:05 AM

Quote:

Originally Posted by david1089 (Post 5867758)
Alright, thanks for the help!

Did you resolve the problem?

david1089 06-15-2018 09:28 PM

Quote:

Originally Posted by hydrurga (Post 5867843)
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

david1089 06-15-2018 09:37 PM

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.

hydrurga 06-15-2018 10:29 PM

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.

david1089 06-16-2018 01:00 AM

Alright, will fix that as soon as possible. THANKS!


All times are GMT -5. The time now is 08:10 PM.