LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-23-2023, 02:33 PM   #1
Muhammad Alaa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Rep: Reputation: 0
I can't update or install from apt.


when i use
Code:
sudo apt update
Code:
[sudo] password for muhammad: 
Ign:1 cdrom://[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 20220910-10:38] bullseye InRelease
Err:2 cdrom://[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 20220910-10:38] bullseye Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Err:3 http://security.debian.org bullseye-security InRelease                   
  Connection failed [IP: 197.199.253.140 80]
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease                  
Err:4 http://deb.debian.org/debian bullseye InRelease                          
  Connection failed [IP: 197.199.253.140 80]
Err:5 http://packages.microsoft.com/repos/code stable InRelease
  Connection failed [IP: 197.199.253.140 80]
Err:6 http://http.us.debian.org/debian stable InRelease
  Connection failed [IP: 197.199.253.140 80]
Err:7 http://deb.debian.org/debian bullseye-security InRelease
  Connection failed [IP: 197.199.253.140 80]
Err:9 http://deb.debian.org/debian bullseye-updates InRelease
  Connection failed [IP: 197.199.253.140 80]
Reading package lists... Done
E: The repository 'cdrom://[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 20220910-10:38] bullseye Release' does not have a Release file.
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 Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:3
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.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: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:3
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.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:3
And i can't install any software too, can anyone explain the proplem please!
 
Old 01-25-2023, 05:48 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

there are problems with your /etc/apt/sources.list file. Either delete or comment out the cdrom and duplicate entry on line 3, or post it here so we can fix it for you.

It also looks like you may have a network problem, but one thing at a time.

Evo2.
 
Old 02-03-2023, 09:24 PM   #3
Muhammad Alaa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Original Poster
Rep: Reputation: 0
First thanks for contacting me.
I'am sorry but I'am new to linux a bit, and it's my first time using communities, I would be greateful if you explained how to "delete or comment out the cdrom and duplicate entry on line 3", and what to post here so you can fix it.
And yes I have a problem with the internet, my labtop connects with my wifi but quite zero speed and can connect with my phone hotspot very well, what i do to live that I connect my phone to the wifi and then my laptop with my phone via usp tethering, I tried upuntu, fedora, manjaro and finally debian but the same problem occur, I tried to solve it but I couldn't, I was on windows before and the network with fine.
 
Old 02-03-2023, 09:50 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,329
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
As root, open the file /etc/apt/sources.list in a text editor. Find the line that references the installation CDROM and either delete it or put an # at the beginning of it (that turns the line into a "comment," that is, it "comments out" the line).

Since you will be at the command line, vim or nano would be the easiest choices. (I'm not at my Debian machine right now, so I can't check whether nano is installed out of the box, but, if it is, that would likely be your best choice. Me, I prefer vim, but vim has a little bit more of a learning curve. You can open the file for editing with a command like nano /etc/apt/sources.list)

As for your internet issue, if you can test with a wired connection, it would be a good idea to do so to determine whether the issue is just with the wireless or is something larger.

And welcome to LQ.

Last edited by frankbell; 02-03-2023 at 10:02 PM. Reason: grammar error
 
Old 02-10-2023, 04:48 PM   #5
Muhammad Alaa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I did commented the the lines with CDROM:

Code:
#deb cdrom:[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 2022091>

#deb cdrom:[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 2022091>

deb http://deb.debian.org/debian/ bullseye non-free main contrib
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

deb http://deb.debian.org/debian/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-security main contrib non-free

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates>
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
I just commented the first two lines.
The problem didn't solved but the error changed:

Quote:
sudo apt update
[sudo] password for muhammad:
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://security.debian.org bullseye-security InRelease
Ign:3 http://deb.debian.org/debian bullseye-security InRelease
Hit:4 http://packages.microsoft.com/repos/code stable InRelease
Hit:5 http://deb.debian.org/debian bullseye-updates InRelease
Err:6 http://deb.debian.org/debian bullseye-security Release
404 Not Found [IP: 199.232.82.132 80]
Hit:7 http://http.us.debian.org/debian stable InRelease
Hit:8 https://dl.google.com/linux/chrome/deb stable InRelease
Reading package lists... Done
E: The repository 'http://deb.debian.org/debian bullseye-security Release' does not have a Release file.
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.
 
Old 02-10-2023, 05:03 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I think the security lines in your sources.list are wrong. Try changing them to:
Code:
deb http://security.debian.org bullseye-security main contrib non-free
deb-src http://security.debian.org bullseye-security main contrib non-free
Ie the host name is "security", not "deb".

Evo2.
 
Old 02-12-2023, 07:03 AM   #7
Muhammad Alaa
LQ Newbie
 
Registered: Jan 2023
Posts: 4

Original Poster
Rep: Reputation: 0
I did what you said:

Code:
#deb cdrom:[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 2022091>

#deb cdrom:[Debian GNU/Linux 11.5.0 _Bullseye_ - Official amd64 NETINST 2022091>

deb http://deb.debian.org/debian/ bullseye non-free main contrib
deb-src http://deb.debian.org/debian/ bullseye main contrib non-free

#deb http://deb.debian.org/debian/ bullseye-security main contrib non-free
#deb-src http://deb.debian.org/debian/ bullseye-security main contrib non-free

deb http://security.debian.org bullseye-security main contrib non-free
deb-src http://security.debian.org bullseye-security main contrib non-free

# bullseye-updates, to get updates before a point release is made;
# see https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_updates>
deb http://deb.debian.org/debian/ bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian/ bullseye-updates main contrib non-free

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
is it done like that?

Code:
sudo apt update
Get:1 http://security.debian.org bullseye-security InRelease [48.4 kB]
Hit:2 http://packages.microsoft.com/repos/code stable InRelease                
Hit:3 http://deb.debian.org/debian bullseye InRelease                          
Hit:4 http://http.us.debian.org/debian stable InRelease                        
Get:5 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Hit:6 https://dl.google.com/linux/chrome/deb stable InRelease
Get:7 http://security.debian.org bullseye-security/main Sources [184 kB]
Get:8 http://security.debian.org bullseye-security/non-free Sources [632 B]
Fetched 277 kB in 1s (198 kB/s)  
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
41 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (non-free/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (non-free/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons-small (non-free/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons (non-free/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (contrib/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (contrib/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons-small (contrib/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons (contrib/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (main/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11 (main/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons-small (main/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27
W: Target DEP-11-icons (main/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:11 and /etc/apt/sources.list:27

Last edited by Muhammad Alaa; 02-12-2023 at 10:41 AM.
 
Old 02-12-2023, 04:02 PM   #8
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
From reading the error message it seems you now have duplicate entries on lines 11 and 27.
 
Old 02-26-2023, 10:16 AM   #9
Andy-1
Member
 
Registered: Jan 2023
Posts: 202

Rep: Reputation: 14
Quote:
Originally Posted by Muhammad Alaa View Post
I have a problem with the internet, my labtop connects with my wifi but quite zero speed and can connect with my phone hotspot very well, what i do to live that I connect my phone to the wifi and then my laptop with my phone via usp tethering, I tried upuntu, fedora, manjaro and finally debian but the same problem occur
I had this problem with Debian using the iso without non free - it follows that I cured this by installing the iso with non-free hardware support included. It now connects to WiFi hub automatically
I also find messing around with sys files stressful as I do not have confidence

We wish you good luck
 
1 members found this post helpful.
  


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
[SOLVED] echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \ > /etc/apt/apt.conf.d/01keep-debs Outabux Debian 10 12-30-2022 12:12 PM
[SOLVED] synaptic, apt-get update, apt update all stopped working tnandy Linux - Software 6 09-09-2020 03:50 PM
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
Is there knoppix-like distro, that we can: apt-get update; apt-get install programs ? frenchn00b Linux - Distributions 7 04-28-2008 02:06 PM
Does 'apt-get update' update the database used by 'apt-cache'? davidas Debian 5 04-20-2004 01:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:51 PM.

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