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

 

 

 

[Solved] apt problem with dns

Linux Kernel, Network, and Services configuration.
Message
Author
User avatar
fabien
Forum Helper
Forum Helper
Posts: 688
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

Re: apt problem with dns

#61 Post by fabien »

Hello Probzx, thank you for the strace file.
Probzx wrote: 2024-03-01 15:47 What are you looking for in the strace report?
I'm looking for things like just above, or things like below that I missed:

Code: Select all

openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0770, st_size=24466, ...}, AT_EMPTY_PATH) = 0
[...]
openat(AT_FDCWD, "/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 4
newfstatat(4, "", {st_mode=S_IFREG|0770, st_size=2996, ...}, AT_EMPTY_PATH) = 0
[...]
newfstatat(AT_FDCWD, "/etc/debian_version", {st_mode=S_IFREG|0770, st_size=5, ...}, 0) = 0
The standard permissions are as follows:

Code: Select all

stat -c '%A %a %U %G %n' /etc/ld.so.cache /etc/locale.alias /etc/debian_version
-rw-r--r-- 644 root root /etc/ld.so.cache
-rw-r--r-- 644 root root /etc/locale.alias
-rw-r--r-- 644 root root /etc/debian_version
Please fix the permissions and test again.

It looks to me like you changed the permissions in /etc/ a lot. You are in a better position than I am to examine and correct them.

At some point, if it still doesn't work, you could do the previous procedure again, although I still don't know why it worked.

Thanks, have a nice weekend!

Probzx
Posts: 25
Joined: 2024-01-15 13:17

Re: apt problem with dns

#62 Post by Probzx »

Hello Fabien,

Thanks a lot for your answer !
I started to correct all the files on the /etc/ folder, then remove the trusted.gpd link in order to keep only the .asc files on /etc/trusted.gpg.d.
I retrieved apt update and it works without any error or warning.
All my files in /etc have wrong permissions settings compare to a fresh server.
It's pretty long but I change half on the permissions files for now.

User avatar
fabien
Forum Helper
Forum Helper
Posts: 688
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 62 times
Been thanked: 161 times

Re: apt problem with dns

#63 Post by fabien »

Hello Probzx,
Probzx wrote: 2024-03-06 15:37 apt update [...] works without any error or warning.
This is great news!
Probzx wrote: 2024-01-24 09:27 Do you think it's possible to "repair" my apt ?
Yes it is! :D

I think it's time to mark your topic as resolved. You can do it by editing your first post and adding [Solved] to the title, e.g.
[Solved] apt problem with dns
but please keep letting us know how you get on with your server.
Have a nice day!

Aki
Global Moderator
Global Moderator
Posts: 2979
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 75 times
Been thanked: 407 times

Re: apt problem with dns

#64 Post by Aki »

Hello @Probzx,

As @fabien suggested in his previous post, please, mark the discussion as "solved" manually adding the text tag "[Solved]" at the beginning of the subject of the first message (after other tags, if any). It is also an opportunity to the make the subject more understandable to other forum users and readers, if necessary; i.e. :
[Solved] apt problem with dns due to misconfiguration/etc directory
Thanks !
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Probzx
Posts: 25
Joined: 2024-01-15 13:17

Re: [Solved] apt problem with dns

#65 Post by Probzx »

Hello @fabien and @Aki
Sorry for the late reply, I did not come here since weeks.

Prefix is edited, thanks for your help :)

Post Reply