Murphy's picture

have installed the template 2 times - always the same error

-----------------------------------------------------------------------------------

root@debian12:~# apt update
Ign:1 http://security.debian.org bookworm-security InRelease
Ign:2 http://deb.debian.org/debian bookworm InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:1 http://security.debian.org bookworm-security InRelease
Ign:2 http://deb.debian.org/debian bookworm InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Ign:1 http://security.debian.org bookworm-security InRelease
Ign:2 http://deb.debian.org/debian bookworm InRelease
Ign:3 http://deb.debian.org/debian bookworm-updates InRelease
Err:1 http://security.debian.org bookworm-security InRelease
  Temporary failure resolving 'security.debian.org'
Err:2 http://deb.debian.org/debian bookworm InRelease
  Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian bookworm-updates InRelease
  Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
Building dependency tree... Done
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/dists/bookworm-security/InRelease  Temporary failure resolving 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

 

-----------------------------------------------------------------------------------------------

what am i doing wrong ?

Greetings Murphy

 

Forum: 
Jeremy Davis's picture

My guess is that networking isn't configured correctly. Or perhaps it's just DNS?

You can confirm (or not) my suspicions with ping. E.g.:

ping -c4 8.8.8.8 # Google DNS
ping -c4 www.google.com
ping -c4 deb.debian.org
ping -c4 security.debian.org

If none of them work, then it's almost certainly your general network config (and/or a firewall, etc). If 8.8.8.8 works, but not the others, then it's likely DNS config.

Murphy's picture

here is the result

--------------------------------------------------------------------

root@debian12:~# ping -c4 8.8.8.8 # Google DNS
ping: connect: Network is unreachable
root@debian12:~# ping -c4 www.google.com
ping: www.google.com: Temporary failure in name resolution
root@debian12:~# ping -c4 deb.debian.org
ping: deb.debian.org: Temporary failure in name resolution
root@debian12:~# ping -c4 security.debian.org
ping: security.debian.org: Temporary failure in name resolution

-----------------------------------------------------------------------

i have other debian and ubuntu servers running. the difference is that i created this one on the fly without a fixed ip - just with dhcp.

all others are without problems 

Jeremy Davis's picture

I have no idea why, but it looks like you don't have any internet access!?

The response to the first command ("ping -c4 8.8.8.8"); "ping: connect: Network is unreachable" demonstrates that it can not connect to Google's Public DNS (8.8.8.8). As that should always be available everywhere (unless you are explicitly blocking it) that suggests to me that you have no internet access on this guest.

It also appears that you have no DNS either (the other queries return "Temporary failure in name resolution") but that would be expected if you had no network access.

My guess is that it hasn't picked up a DHCP lease for some reason? TBH I don't know if the vanilla Debian container even has a DHCP client installed? Note that we only provide the TurnKey templates available via Proxmox. AFAIK, the other templates available for download are provided by Proxmox themselves. I have used them myself before, but have no idea about how they are set up, or meant to work, etc. I'd try getting a DHCP lease manually and see if that works. If not and assuming that you want to persist with a vanilla Debian container, I suggest that you ask on the Proxmox forums. Hopefully they have some ideas/advice for you?

If you do that, please feel free to cross post a link to your thread and/or post back once you know the answer (someone else might find it useful if they stumble upon this thread).

Also, if you reproduce this same issue on a TurnKey container, feel free to let me know and I'll dig in a little deeper.

Timmy's picture

What's the result of `ip config`?

That should say out the gate whether the VM has an IP.

Murphy's picture

Hi Jeremy,

I have found it.
as always, the error lies in front of the computer.
I installed debian and wanted to do it quickly without a fixed ip.
so i didn't specify anything in the network when i created it.
the stupid thing is that it is set to "static" and not dhcp.
then the field was empty and it could not work.

happened to me now for the first time - sorry please 

Add new comment