Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Fresh minimal install can't connect to repositories

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
dexl
Posts: 9
Joined: 2022-01-22 13:30
Been thanked: 1 time

Fresh minimal install can't connect to repositories

#1 Post by dexl »

I have successfully installed minimal Debian 11 netinstall, selected the nearest mirror during the setup, but upon booting to a barebones initial system, I cannot install anything because apt gives an error: Failed to fetch http://...

How can I fix this if there's not even a vim to edit /etc/apt/sources.list ?

This happened to me before when I settled for the default debian repository in the installer. So now, on second fresh install, I changed it to my local mirror and it still doesn't work. How can I fix this? Thank you.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Fresh minimal install can't connect to repositories

#2 Post by p.H »

nano should be installed. Or boot with the installer in rescue mode.
Does the network connection work and is the mirror reachable ?

User avatar
canci
Global Moderator
Global Moderator
Posts: 2502
Joined: 2006-09-24 11:28
Has thanked: 136 times
Been thanked: 136 times

Re: Fresh minimal install can't connect to repositories

#3 Post by canci »

Since I always use network-manager I'm not sure if network settings from the installation are automatically added to the traditional network config. Maybe that's part of the issue
Image Stable / Asus VivoBook X421DA / AMD Ryzen 7 3700U / Radeon Vega Mobile Gfx (Picasso) / 8 GB RAM / 512GB NVMe

READ THIS:

* How to Post a Thread Here
* Other Tips and Great Resources

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Fresh minimal install can't connect to repositories

#4 Post by p.H »

IME, wireless settings are not added to /etc/network/interfaces. Ethernet settings are.

dexl
Posts: 9
Joined: 2022-01-22 13:30
Been thanked: 1 time

Re: Fresh minimal install can't connect to repositories

#5 Post by dexl »

After connecting the laptop with the ethernet cable, I still cannot connect to the repositories. Nano, indeed, is installed, so I will try to change the repos using that.

dexl
Posts: 9
Joined: 2022-01-22 13:30
Been thanked: 1 time

Re: Fresh minimal install can't connect to repositories

#6 Post by dexl »

OK, so after changing the repos to official Debian ones, it still says there's a temporary failure resolving 'deb.debian.org'
I have the Ethernet cable in so what can I try now to fix this?

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Fresh minimal install can't connect to repositories

#7 Post by p.H »

Did you use ethernet or wireless during the installation ?
If you used wireless, then the ethernet connection is not configured and plugging a cable is not enough.

Code: Select all

ip addr
will show the ethernet interface name enXXX and status. If it is not up and configured with an IP address, you can temporarily configure it with

Code: Select all

dhclient enXXX
Persistent configuration must be added to /etc/network/interfaces:

Code: Select all

allow-hotplug enXXX
iface enXXX inet dhcp

dexl
Posts: 9
Joined: 2022-01-22 13:30
Been thanked: 1 time

Re: Fresh minimal install can't connect to repositories

#8 Post by dexl »

I don't think I understand any of this. The connection is down both with the cable and wifi.
Is there something wrong with the installer that I can't connect to the repos? It was working fine during the installation, it downloaded files while installing the system so why doesn't it work now?
What do I need to configure in "dhclient enXXX"? What do XXX stand for? When I type it as is, "bash: dhclient: command not found"

enp1s0 and wlp2s0 are shown as DOWN

:(

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Fresh minimal install can't connect to repositories

#9 Post by p.H »

dexl wrote: 2022-01-22 20:19 What do XXX stand for?
Make an educated guess.
dexl wrote: 2022-01-22 20:19 bash: dhclient: command not found
Did you run the command as root with proper path (after su --login or sudo) ?

dexl
Posts: 9
Joined: 2022-01-22 13:30
Been thanked: 1 time

Re: Fresh minimal install can't connect to repositories

#10 Post by dexl »

Yes, I did run su. I made an educated guess, by substituting enXXX for enp1s0, but it gave me an error. I couldn't find anything that would work on google search either. This is as far as I can guess, not having experience with Debian installation and not knowing what else I could try.

The reason why people write here is because they need help figuring things out. Comments of the sort: "Make an educated guess" are very rude and unhelpful.

I guess I will either try reinstalling once again with ethernet cable plugged in or will not bother asking for help here and go with another distro that is more user friendly.

User avatar
cds60601
df -h | participant
df -h | participant
Posts: 706
Joined: 2017-11-25 05:58
Location: Florida
Has thanked: 129 times
Been thanked: 60 times

Re: Fresh minimal install can't connect to repositories

#11 Post by cds60601 »

I'm curious - the ISO you used, did you by chance grab the non-free driver version?
Supercalifragilisticexpialidocious

dexl
Posts: 9
Joined: 2022-01-22 13:30
Been thanked: 1 time

Re: Fresh minimal install can't connect to repositories

#12 Post by dexl »

Thanks, I think, (as far as I remember) I opted for the one that had the driver version.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Fresh minimal install can't connect to repositories

#13 Post by p.H »

dexl wrote: 2022-01-22 21:18 The reason why people write here is because they need help figuring things out.
In other words, they come here to learn something. Here are some means :
Ask better questions.
Give better answers.
Provide useful information.
dexl wrote: 2022-01-22 21:18 "Make an educated guess" are very rude and unhelpful.
What about not answering questions I asked, not posting the exact commands you typed and the complete output you got nor the content of indicated files ?

kedaha
Posts: 3521
Joined: 2008-05-24 12:26
Has thanked: 33 times
Been thanked: 77 times

Re: Fresh minimal install can't connect to repositories

#14 Post by kedaha »

Hi,
Try

Code: Select all

# nmtui
See, for example: network-configuration-debian
DebianStable

Code: Select all

$ vrms

No non-free or contrib packages installed on debian!  rms would be proud.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Fresh minimal install can't connect to repositories

#15 Post by p.H »

NetworkManager is not part of a minimal install.

Post Reply