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. |
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.
|
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 jlinkels |
Quote:
The command used to get root privilege is 'su'. You use the sudo command in Ubuntu. Quote:
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:
Because it is not source code - human beings cannot read it. If the code cannot be read then it cannot be authenticated. Quote:
There could be malware or spyware in the code but it can't be read because it is binary and not source code. Quote:
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. |
Quote:
https://wiki.debian.org/sudo Quote:
Quote:
Quote:
@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 |
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 |
Alright, thanks for the help!
|
Quote:
|
Quote:
Since I have an internet connection, I thought this to be the better way. Regards, david1089 |
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. |
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) . Your first security repo line: Code:
deb http://security.debian.org/ stretch/updates main contib non-free . 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. |
Alright, will fix that as soon as possible. THANKS!
|
All times are GMT -5. The time now is 08:10 PM. |