apt update

Автор ops244, 03 сентября 2024, 14:33:21

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

ops244

Привет всем, подскажите пожалуйста, с чем может быть связыны эти ошибки?
пробовал пинг - все проходит
Игн:1 http://security.debian.org/debian-security bookworm-security InRelease
Игн:2 http://deb.debian.org/debian bookworm InRelease
Игн:3 http://deb.debian.org/debian bookworm-updates InRelease
Игн:1 http://security.debian.org/debian-security bookworm-security InRelease
Игн:2 http://deb.debian.org/debian bookworm InRelease
Игн:3 http://deb.debian.org/debian bookworm-updates InRelease
Игн:1 http://security.debian.org/debian-security bookworm-security InRelease
Игн:2 http://deb.debian.org/debian bookworm InRelease
Игн:3 http://deb.debian.org/debian bookworm-updates InRelease
Ошб:2 http://deb.debian.org/debian bookworm InRelease
  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
Ошб:1 http://security.debian.org/debian-security bookworm-security InRelease
  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «security.debian.org»
Ошб:3 http://deb.debian.org/debian bookworm-updates InRelease
  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
Чтение списков пакетов... Готово
W: Не удалось получить http://deb.debian.org/debian/dists/bookworm/InRelease  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
W: Не удалось получить http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «security.debian.org»
W: Не удалось получить http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
W: Некоторые индексные файлы скачать не удалось. Они были проигнорированы, или вместо них были использованы старые версии.

dzhoser

1. Неправильно выставлено время на ПК
2. Не настроен DNS
Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

Лия

#2
Покажите
date
cat /etc/resolv.conf

ops244

Цитата: Лия от 03 сентября 2024, 14:56:08Покажите
date
cat /etc/resolv.conf
да все правильно вроде
root@debian:~# date
Вт 03 сен 2024 15:08:41 MSK
root@debian:~# cat /etc/resolv.conf
nameserver 192.168.1.1
root@debian:~#

ChubaDuba

#4
Интернет кончился  :)
Попробуйте:
$ ping 8.8.8.8
Или сервер лежит... Хотя  посмотрел, сервер работает.

ops244

#5
Цитата: ChubaDuba от 03 сентября 2024, 15:17:23Интернет кончился  :)
Попробуйте:
$ ping 8.8.8.8
Или сервер лежит.
все норм
root@debian:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=26.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=57 time=25.8 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=57 time=25.8 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=57 time=25.8 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=57 time=25.8 ms
64 bytes from 8.8.8.8: icmp_seq=6 ttl=57 time=25.9 ms

03 сентября 2024, 15:24:28
до этого удалил bluez
sudo apt remove bluez
sudo apt autoclean && sudo apt autoremove

и больше не могу его переустановить...

E: Для пакета «bluez» не найден кандидат на установку

Лия

#6
Попробуйте
sudo sh -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf'

03 сентября 2024, 15:27:55
И посмотрите настройки DNS на роутере (192.168.1.1)

ops244

#7
Цитата: Лия от 03 сентября 2024, 15:26:15Попробуйте
sudo sh -c 'echo "nameserver 1.1.1.1" > /etc/resolv.conf'

03 сентября 2024, 15:27:55
И посмотрите настройки DNS на роутере (192.168.1.1)
тоже самое, в роутере 1.1.1.1 8.8.8.8 и 78.88.88.88 стоят, пинг-то идет и ip сереверов он видит
root@debian:~# nslookup deb.debian.org
Server:         1.1.1.1
Address:        1.1.1.1#53

Non-authoritative answer:
deb.debian.org  canonical name = debian.map.fastlydns.net.
Name:   debian.map.fastlydns.net
Address: 151.101.38.132
Name:   debian.map.fastlydns.net
Address: 2a04:4e42:8d::644
он-же не ошибку выдает, а игнор какой-то...

Лия

#8
Покажите от рута:
# LANG="C" ls -la /var/lib/apt/*
# mawk 'BEGIN{FS=":"} NR==FNR{if (/_apt/){print $1,$3,$4; uid=$3}} NR!=FNR{if ($3==uid){print $3"="$1}}' /etc/passwd{,}
# LANG="C" apt -o "Debug::Acquire::https=1" -o "Debug::Acquire::http=1" -o "Debug::Acquire::ftp=1" update
# LANG="C" apt -o "Acquire::ForceIPv4=1" update
# LANG="C" apt -o "APT::Sandbox::User=root" update
# apt-config dump
# ls -lh /etc/host.conf /etc/hosts /etc/nsswitch.conf
# cat /etc/host.conf /etc/hosts /etc/nsswitch.conf

и от пользователя:
$ getent hosts deb.debian.org
$ getent ahosts deb.debian.org
$ curl -o /dev/null -v http://deb.debian.org/debian/pool/main/h/hello/hello_2.10-3_amd64.deb
$ curl -o /dev/null -v https://deb.debian.org/debian/pool/main/h/hello/hello_2.10-3_amd64.deb

ops244

Цитата: Лия от 03 сентября 2024, 15:46:12Покажите от рута:
# LANG="C" ls -la /var/lib/apt/*
# mawk 'BEGIN{FS=":"} NR==FNR{if (/_apt/){print $1,$3,$4; uid=$3}} NR!=FNR{if ($3==uid){print $3"="$1}}' /etc/passwd{,}
# LANG="C" apt -o "Debug::Acquire::https=1" -o "Debug::Acquire::http=1" -o "Debug::Acquire::ftp=1" update
# LANG="C" apt -o "Acquire::ForceIPv4=1" update
# LANG="C" apt -o "APT::Sandbox::User=root" update
# apt-config dump
# ls -lh /etc/host.conf /etc/hosts /etc/nsswitch.conf
# cat /etc/host.conf /etc/hosts /etc/nsswitch.conf

и от пользователя:
$ getent hosts deb.debian.org
$ getent ahosts deb.debian.org
$ curl -o /dev/null -v http://deb.debian.org/debian/pool/main/h/hello/hello_2.10-3_amd64.deb
$ curl -o /dev/null -v https://deb.debian.org/debian/pool/main/h/hello/hello_2.10-3_amd64.deb

root@debian:~# LANG="C" ls -la /var/lib/apt/*
-rw-r--r-- 1 root root   269 Aug 27 15:00 /var/lib/apt/cdroms.list
-rw-r--r-- 1 root root   269 Aug 27 14:59 /var/lib/apt/cdroms.list~
-rw-r--r-- 1 root root     0 Sep  3 12:09 /var/lib/apt/daily_lock
-rw-r--r-- 1 root root 16954 Sep  3 11:54 /var/lib/apt/extended_states
-rw-r--r-- 1 root root 12288 Aug 28 00:01 /var/lib/apt/listchanges.db

/var/lib/apt/lists:
total 16
drwxr-xr-x 4 root root 4096 Sep  3 11:51 .
drwxr-xr-x 5 root root 4096 Sep  3 11:54 ..
drwxr-xr-x 2 _apt root 4096 Sep  3 11:51 auxfiles
-rw-r----- 1 root root    0 Sep  3 11:51 lock
drwx------ 2 _apt root 4096 Sep  3 15:55 partial

/var/lib/apt/mirrors:
total 12
drwxr-xr-x 3 root root 4096 Aug 27 14:58 .
drwxr-xr-x 5 root root 4096 Sep  3 11:54 ..
drwxr-xr-x 2 root root 4096 May 25  2023 partial

/var/lib/apt/periodic:
total 8
drwxr-xr-x 2 root root 4096 May 25  2023 .
drwxr-xr-x 5 root root 4096 Sep  3 11:54 ..

root@debian:~# mawk 'BEGIN{FS=":"} NR==FNR{if (/_apt/){print $1,$3,$4; uid=$3}} NR!=FNR{if ($3==uid){print $3"="$1}}' /etc/passwd{,}
_apt 42 65534
42=_apt

root@debian:~# LANG="C" apt -o "Debug::Acquire::https=1" -o "Debug::Acquire::http=1" -o "Debug::Acquire::ftp=1" update
Ign:1 http://security.debian.org/debian-security 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/debian-security 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/debian-security 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/debian-security bookworm-security InRelease
  Temporary failure resolving 'debian.map.fastlydns.net' Temporary failure resolving 'security.debian.org'
Err:2 http://deb.debian.org/debian bookworm InRelease
  Temporary failure resolving 'debian.map.fastlydns.net' Temporary failure resolving 'deb.debian.org'
Err:3 http://deb.debian.org/debian bookworm-updates InRelease
  Temporary failure resolving 'debian.map.fastlydns.net' Temporary failure resolving 'deb.debian.org'
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm/InRelease  Temporary failure resolving 'debian.map.fastlydns.net' Temporary failure resolving 'deb.debian.org'
W: Failed to fetch http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Temporary failure resolving 'debian.map.fastlydns.net' Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Temporary failure resolving 'debian.map.fastlydns.net' Temporary failure resolving 'deb.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.

root@debian:~# apt -o "Acquire::ForceIPv4=1" update
Игн:1 http://deb.debian.org/debian bookworm InRelease
Игн:2 http://security.debian.org/debian-security bookworm-security InRelease
Игн:3 http://deb.debian.org/debian bookworm-updates InRelease
Игн:1 http://deb.debian.org/debian bookworm InRelease
Игн:2 http://security.debian.org/debian-security bookworm-security InRelease
Игн:3 http://deb.debian.org/debian bookworm-updates InRelease
Игн:2 http://security.debian.org/debian-security bookworm-security InRelease
Игн:1 http://deb.debian.org/debian bookworm InRelease
Игн:3 http://deb.debian.org/debian bookworm-updates InRelease
Ошб:2 http://security.debian.org/debian-security bookworm-security InRelease
  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «security.debian.org»
Ошб:1 http://deb.debian.org/debian bookworm InRelease
  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
Ошб:3 http://deb.debian.org/debian bookworm-updates InRelease
  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
Чтение списков пакетов... Готово
Построение дерева зависимостей... Готово
Чтение информации о состоянии... Готово
Все пакеты имеют последние версии.
W: Не удалось получить http://deb.debian.org/debian/dists/bookworm/InRelease  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
W: Не удалось получить http://security.debian.org/debian-security/dists/bookworm-security/InRelease  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «security.debian.org»
W: Не удалось получить http://deb.debian.org/debian/dists/bookworm-updates/InRelease  Временная ошибка при разрешении «debian.map.fastlydns.net» Временная ошибка при разрешении «deb.debian.org»
W: Некоторые индексные файлы скачать не удалось. Они были проигнорированы, или вместо них были использованы старые версии.


root@debian:~# apt-config dump
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Sandbox "";
APT::Sandbox::User "_apt";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image-[a-z0-9]*$";
APT::NeverAutoRemove:: "^linux-image-[a-z0-9]*-[a-z0-9]*$";
APT::VersionedKernelPackages "";
APT::VersionedKernelPackages:: "linux-.*";
APT::VersionedKernelPackages:: "kfreebsd-.*";
APT::VersionedKernelPackages:: "gnumach-.*";
APT::VersionedKernelPackages:: ".*-modules";
APT::VersionedKernelPackages:: ".*-kernel";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "tasks";
APT::Move-Autobit-Sections "";
APT::Move-Autobit-Sections:: "oldlibs";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "0";
APT::Compressor::zstd "";
APT::Compressor::zstd::Name "zstd";
APT::Compressor::zstd::Extension ".zst";
APT::Compressor::zstd::Binary "zstd";
APT::Compressor::zstd::Cost "60";
APT::Compressor::zstd::CompressArg "";
APT::Compressor::zstd::CompressArg:: "-19";
APT::Compressor::zstd::UncompressArg "";
APT::Compressor::zstd::UncompressArg:: "-d";
APT::Compressor::lz4 "";
APT::Compressor::lz4::Name "lz4";
APT::Compressor::lz4::Extension ".lz4";
APT::Compressor::lz4::Binary "false";
APT::Compressor::lz4::Cost "50";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "100";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-6n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "200";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "300";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-6";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "400";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-6";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::netrcparts "auth.conf.d";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Etc::apt-listchanges-main "listchanges.conf";
Dir::Etc::apt-listchanges-parts "listchanges.conf.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::planners "";
Dir::Bin::planners:: "/usr/lib/apt/planners";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::gzip "/bin/gzip";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Bin::lz4 "/usr/bin/lz4";
Dir::Bin::zstd "/usr/bin/zstd";
Dir::Bin::lzma "/usr/bin/xz";
Dir::Media "";
Dir::Media::MountPath "/media/cdrom";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Log::Planner "eipp.log.xz";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.ucf-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Dir::Ignore-Files-Silently:: "\.distUpgrade$";
Acquire "";
Acquire::AllowInsecureRepositories "0";
Acquire::AllowWeakRepositories "0";
Acquire::AllowDowngradeToInsecureRepositories "0";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";
Acquire::IndexTargets "";
Acquire::IndexTargets::deb "";
Acquire::IndexTargets::deb::Packages "";
Acquire::IndexTargets::deb::Packages::MetaKey "$(COMPONENT)/binary-$(ARCHITECTURE)/Packages";
Acquire::IndexTargets::deb::Packages::flatMetaKey "Packages";
Acquire::IndexTargets::deb::Packages::ShortDescription "Packages";
Acquire::IndexTargets::deb::Packages::Description "$(RELEASE)/$(COMPONENT) $(ARCHITECTURE) Packages";
Acquire::IndexTargets::deb::Packages::flatDescription "$(RELEASE) Packages";
Acquire::IndexTargets::deb::Packages::Optional "0";
Acquire::IndexTargets::deb::Translations "";
Acquire::IndexTargets::deb::Translations::MetaKey "$(COMPONENT)/i18n/Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::flatMetaKey "$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::ShortDescription "Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::Description "$(RELEASE)/$(COMPONENT) Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb::Translations::flatDescription "$(RELEASE) Translation-$(LANGUAGE)";
Acquire::IndexTargets::deb-src "";
Acquire::IndexTargets::deb-src::Sources "";
Acquire::IndexTargets::deb-src::Sources::MetaKey "$(COMPONENT)/source/Sources";
Acquire::IndexTargets::deb-src::Sources::flatMetaKey "Sources";
Acquire::IndexTargets::deb-src::Sources::ShortDescription "Sources";
Acquire::IndexTargets::deb-src::Sources::Description "$(RELEASE)/$(COMPONENT) Sources";
Acquire::IndexTargets::deb-src::Sources::flatDescription "$(RELEASE) Sources";
Acquire::IndexTargets::deb-src::Sources::Optional "0";
Acquire::Changelogs "";
Acquire::Changelogs::URI "";
Acquire::Changelogs::URI::Origin "";
Acquire::Changelogs::URI::Origin::Debian "https://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog";
Acquire::Changelogs::URI::Origin::Ubuntu "https://changelogs.ubuntu.com/changelogs/pool/@CHANGEPATH@/changelog";
Acquire::Changelogs::AlwaysOnline "";
Acquire::Changelogs::AlwaysOnline::Origin "";
Acquire::Changelogs::AlwaysOnline::Origin::Ubuntu "1";
Acquire::Languages "";
Acquire::Languages:: "ru_RU";
Acquire::Languages:: "ru";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
Acquire::CompressionTypes "";
Acquire::CompressionTypes::xz "xz";
Acquire::CompressionTypes::bz2 "bzip2";
Acquire::CompressionTypes::lzma "lzma";
Acquire::CompressionTypes::gz "gzip";
Acquire::CompressionTypes::lz4 "lz4";
Acquire::CompressionTypes::zst "zstd";
DPkg "";
DPkg::Path "/usr/sbin:/usr/bin:/sbin:/bin";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -lt 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Tools::Options::/usr/bin/apt-listchanges::InfoFD "20";
Binary "apt-config";
Binary::apt "";
Binary::apt::APT "";
Binary::apt::APT::Color "1";
Binary::apt::APT::Cache "";
Binary::apt::APT::Cache::Show "";
Binary::apt::APT::Cache::Show::Version "2";
Binary::apt::APT::Cache::AllVersions "0";
Binary::apt::APT::Cache::ShowVirtuals "1";
Binary::apt::APT::Cache::Search "";
Binary::apt::APT::Cache::Search::Version "2";
Binary::apt::APT::Cache::ShowDependencyType "1";
Binary::apt::APT::Cache::ShowVersion "1";
Binary::apt::APT::Get "";
Binary::apt::APT::Get::Upgrade-Allow-New "1";
Binary::apt::APT::Get::Update "";
Binary::apt::APT::Get::Update::InteractiveReleaseInfoChanges "1";
Binary::apt::APT::Cmd "";
Binary::apt::APT::Cmd::Show-Update-Stats "1";
Binary::apt::APT::Cmd::Pattern-Only "1";
Binary::apt::APT::Keep-Downloaded-Packages "0";
Binary::apt::DPkg "";
Binary::apt::DPkg::Progress-Fancy "1";
Binary::apt::DPkg::Lock "";
Binary::apt::DPkg::Lock::Timeout "-1";
CommandLine "";
CommandLine::AsString "apt-config dump";

root@debian:~# ls -lh /etc/host.conf /etc/hosts /etc/nsswitch.conf
-rw-r--r-- 1 root root   9 авг  7  2006 /etc/host.conf
-rw-r--r-- 1 root root 186 авг 27 14:59 /etc/hosts
-rw-r--r-- 1 root root 563 авг 27 15:22 /etc/nsswitch.conf


root@debian:~# ls -lh /etc/host.conf /etc/hosts /etc/nsswitch.conf
-rw-r--r-- 1 root root   9 авг  7  2006 /etc/host.conf
-rw-r--r-- 1 root root 186 авг 27 14:59 /etc/hosts
-rw-r--r-- 1 root root 563 авг 27 15:22 /etc/nsswitch.conf
root@debian:~# cat /etc/host.conf /etc/hosts /etc/nsswitch.conf
multi on
127.0.0.1       localhost
127.0.1.1       debian

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         files systemd
group:          files systemd
shadow:         files systemd
gshadow:        files systemd

hosts:          files myhostname resolve [!UNAVAIL=return] dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

от пользователя первые 2 ничего не показывает

ops244@debian:~$ curl -o /dev/null -v http://deb.debian.org/debian/pool/main/h/hello/hello_2.10-3_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Could not resolve host: deb.debian.org
* Closing connection 0
curl: (6) Could not resolve host: deb.debian.org

ops244@debian:~$ curl -o /dev/null -v https://deb.debian.org/debian/pool/main/h/hello/hello_2.10-3_amd64.deb
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Could not resolve host: deb.debian.org
* Closing connection 0
curl: (6) Could not resolve host: deb.debian.org

P.S. походу дело в этом curl: (6) Could not resolve host: deb.debian.org а как исправляется?)

Лия

#10
И ещё покажите
ls -lh /etc/gai.conf
cat /etc/gai.conf
и
sudo strace getent ahosts deb.debian.org

ops244

Цитата: Лия от 03 сентября 2024, 16:09:49И ещё покажите
ls -lh /etc/gai.conf
cat /etc/gai.conf
и
sudo strace getent ahosts deb.debian.org

root@debian:~# cat /etc/gai.conf
# Configuration for getaddrinfo(3).
#
# So far only configuration for the destination address sorting is needed.
# RFC 3484 governs the sorting.  But the RFC also says that system
# administrators should be able to overwrite the defaults.  This can be
# achieved here.
#
# All lines have an initial identifier specifying the option followed by
# up to two values.  Information specified in this file replaces the
# default information.  Complete absence of data of one kind causes the
# appropriate default information to be used.  The supported commands include:
#
# reload  <yes|no>
#    If set to yes, each getaddrinfo(3) call will check whether this file
#    changed and if necessary reload.  This option should not really be
#    used.  There are possible runtime problems.  The default is no.
#
# label   <mask>   <value>
#    Add another rule to the RFC 3484 label table.  See section 2.1 in
#    RFC 3484.  The default is:
#
#label ::1/128       0
#label ::/0          1
#label 2002::/16     2
#label ::/96         3
#label ::ffff:0:0/96 4
#label fec0::/10     5
#label fc00::/7      6
#label 2001:0::/32   7
#
#    This default differs from the tables given in RFC 3484 by handling
#    (now obsolete) site-local IPv6 addresses and Unique Local Addresses.
#    The reason for this difference is that these addresses are never
#    NATed while IPv4 site-local addresses most probably are.  Given
#    the precedence of IPv6 over IPv4 (see below) on machines having only
#    site-local IPv4 and IPv6 addresses a lookup for a global address would
#    see the IPv6 be preferred.  The result is a long delay because the
#    site-local IPv6 addresses cannot be used while the IPv4 address is
#    (at least for the foreseeable future) NATed.  We also treat Teredo
#    tunnels special.
#
# precedence  <mask>   <value>
#    Add another rule to the RFC 3484 precedence table.  See section 2.1
#    and 10.3 in RFC 3484.  The default is:
#
#precedence  ::1/128       50
#precedence  ::/0          40
#precedence  2002::/16     30
#precedence ::/96          20
#precedence ::ffff:0:0/96  10
#
#    For sites which prefer IPv4 connections change the last line to
#
#precedence ::ffff:0:0/96  100

#
# scopev4  <mask>  <value>
#    Add another rule to the RFC 6724 scope table for IPv4 addresses.
#    By default the scope IDs described in section 3.2 in RFC 6724 are
#    used.  Changing these defaults should hardly ever be necessary.
#    The defaults are equivalent to:
#
#scopev4 ::ffff:169.254.0.0/112  2
#scopev4 ::ffff:127.0.0.0/104    2
#scopev4 ::ffff:0.0.0.0/96       14

strace не установлен(
и установить сейчас не могу ничего... (E: Для пакета «strace» не найден кандидат на установку)


Лия

#12
Цитата: ops244 от 03 сентября 2024, 16:14:49и установить сейчас не могу ничего... (E: Для пакета «strace» не найден кандидат на установку)
wget --header 'Host: deb.debian.org' http://151.101.242.132/debian/pool/main/s/strace/strace_6.1-0.1_amd64.deb
sudo dpkg -i strace_6.1-0.1_amd64.deb

Если нужен libunwind8 - по аналогии с http://151.101.242.132/debian/pool/main/libu/libunwind/libunwind8_1.6.2-3_amd64.deb

ops244

Цитата: Лия от 03 сентября 2024, 16:17:34
Цитата: ops244 от 03 сентября 2024, 16:14:49и установить сейчас не могу ничего... (E: Для пакета «strace» не найден кандидат на установку)
wget --header 'Host: deb.debian.org' http://151.101.242.132/debian/pool/main/s/strace/strace_6.1-0.1_amd64.deb
sudo dpkg -i strace_6.1-0.1_amd64.deb

Если нужен libunwind8 - по аналогии с http://151.101.242.132/debian/pool/main/libu/libunwind/libunwind8_1.6.2-3_amd64.deb

root@debian:~# sudo strace getent ahosts deb.debian.org
execve("/usr/bin/getent", ["getent", "ahosts", "deb.debian.org"], 0x7ffd875ccc00 /* 12 vars */) = 0
brk(NULL)                               = 0x555eef587000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3583587000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (Нет такого файла или каталога)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=16890, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 16890, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3583582000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20t\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1922136, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1970000, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f35833a1000
mmap(0x7f35833c7000, 1396736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f35833c7000
mmap(0x7f358351c000, 339968, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17b000) = 0x7f358351c000
mmap(0x7f358356f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ce000) = 0x7f358356f000
mmap(0x7f3583575000, 53072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f3583575000
close(3)                                = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f358339e000
arch_prctl(ARCH_SET_FS, 0x7f358339e740) = 0
set_tid_address(0x7f358339ea10)         = 3469
set_robust_list(0x7f358339ea20, 24)     = 0
rseq(0x7f358339f060, 0x20, 0, 0x53053053) = 0
mprotect(0x7f358356f000, 16384, PROT_READ) = 0
mprotect(0x555eef246000, 4096, PROT_READ) = 0
mprotect(0x7f35835b9000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f3583582000, 16890)           = 0
getrandom("\x24\xc9\xfd\x3b\xcf\xec\x23\x08", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x555eef587000
brk(0x555eef5a8000)                     = 0x555eef5a8000
openat(AT_FDCWD, "/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3049040, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 3049040, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3583000000
close(3)                                = 0
socket(AF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, NETLINK_ROUTE) = 3
bind(3, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, nl_pid=3469, nl_groups=00000000}, [12]) = 0
sendto(3, [{nlmsg_len=20, nlmsg_type=RTM_GETADDR, nlmsg_flags=NLM_F_REQUEST|NLM_F_DUMP, nlmsg_seq=1725369834, nlmsg_pid=0}, {ifa_family=AF_UNSPEC, ...}], 20, 0, {sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, 12) = 20
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=76, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET, ifa_prefixlen=8, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_HOST, ifa_index=if_nametoindex("lo")}, [[{nla_len=8, nla_type=IFA_ADDRESS}, inet_addr("127.0.0.1")], [{nla_len=8, nla_type=IFA_LOCAL}, inet_addr("127.0.0.1")], [{nla_len=7, nla_type=IFA_LABEL}, "lo"], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=482, tstamp=482}]]], [{nlmsg_len=88, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET, ifa_prefixlen=24, ifa_flags=0, ifa_scope=RT_SCOPE_UNIVERSE, ifa_index=if_nametoindex("enp2s0")}, [[{nla_len=8, nla_type=IFA_ADDRESS}, inet_addr("192.168.1.100")], [{nla_len=8, nla_type=IFA_LOCAL}, inet_addr("192.168.1.100")], [{nla_len=8, nla_type=IFA_BROADCAST}, inet_addr("192.168.1.255")], [{nla_len=11, nla_type=IFA_LABEL}, "enp2s0"], [{nla_len=8, nla_type=IFA_FLAGS}, 0], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=21352, ifa_valid=21352, cstamp=1121, tstamp=1121}]]], [{nlmsg_len=88, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET, ifa_prefixlen=23, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_UNIVERSE, ifa_index=if_nametoindex("hassio")}, [[{nla_len=8, nla_type=IFA_ADDRESS}, inet_addr("172.30.32.1")], [{nla_len=8, nla_type=IFA_LOCAL}, inet_addr("172.30.32.1")], [{nla_len=8, nla_type=IFA_BROADCAST}, inet_addr("172.30.33.255")], [{nla_len=11, nla_type=IFA_LABEL}, "hassio"], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=1001, tstamp=1001}]]], [{nlmsg_len=88, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET, ifa_prefixlen=16, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_UNIVERSE, ifa_index=if_nametoindex("docker0")}, [[{nla_len=8, nla_type=IFA_ADDRESS}, inet_addr("172.17.0.1")], [{nla_len=8, nla_type=IFA_LOCAL}, inet_addr("172.17.0.1")], [{nla_len=8, nla_type=IFA_BROADCAST}, inet_addr("172.17.255.255")], [{nla_len=12, nla_type=IFA_LABEL}, "docker0"], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=1011, tstamp=1011}]]]], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 340
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[[{nlmsg_len=72, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET6, ifa_prefixlen=128, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_HOST, ifa_index=if_nametoindex("lo")}, [[{nla_len=20, nla_type=IFA_ADDRESS}, inet_pton(AF_INET6, "::1")], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=482, tstamp=482}], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT|IFA_F_NOPREFIXROUTE]]], [{nlmsg_len=80, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET6, ifa_prefixlen=64, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_LINK, ifa_index=if_nametoindex("enp2s0")}, [[{nla_len=20, nla_type=IFA_ADDRESS}, inet_pton(AF_INET6, "fe80::e251:d8ff:fe12:136c")], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=980, tstamp=980}], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT], [{nla_len=5, nla_type=IFA_PROTO}, "\x03"]]], [{nlmsg_len=80, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET6, ifa_prefixlen=64, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_LINK, ifa_index=if_nametoindex("hassio")}, [[{nla_len=20, nla_type=IFA_ADDRESS}, inet_pton(AF_INET6, "fe80::42:32ff:fe70:a96b")], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=1070, tstamp=1070}], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT], [{nla_len=5, nla_type=IFA_PROTO}, "\x03"]]], [{nlmsg_len=80, nlmsg_type=RTM_NEWADDR, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, {ifa_family=AF_INET6, ifa_prefixlen=64, ifa_flags=IFA_F_PERMANENT, ifa_scope=RT_SCOPE_LINK, ifa_index=if_nametoindex("veth61aba6b")}, [[{nla_len=20, nla_type=IFA_ADDRESS}, inet_pton(AF_INET6, "fe80::ac44:84ff:fef3:70c7")], [{nla_len=20, nla_type=IFA_CACHEINFO}, {ifa_prefered=4294967295, ifa_valid=4294967295, cstamp=1111, tstamp=1111}], [{nla_len=8, nla_type=IFA_FLAGS}, IFA_F_PERMANENT], [{nla_len=5, nla_type=IFA_PROTO}, "\x03"]]]], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 312
recvmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base=[{nlmsg_len=20, nlmsg_type=NLMSG_DONE, nlmsg_flags=NLM_F_MULTI, nlmsg_seq=1725369834, nlmsg_pid=3469}, 0], iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 20
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 4
connect(4, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (Нет такого файла или каталога)
close(4)                                = 0
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=27028, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 27028, PROT_READ, MAP_SHARED, 3, 0) = 0x7f3583397000
close(3)                                = 0
futex(0x7f3583574a4c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (Нет такого файла или каталога)
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=563, ...}, 0) = 0
newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=563, ...}, AT_EMPTY_PATH) = 0
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 563
read(3, "", 4096)                       = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=563, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/resolv.conf", {st_mode=S_IFREG|0644, st_size=23, ...}, 0) = 0
openat(AT_FDCWD, "/etc/host.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=9, ...}, AT_EMPTY_PATH) = 0
read(3, "multi on\n", 4096)             = 9
read(3, "", 4096)                       = 0
close(3)                                = 0
futex(0x7f358357c42c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
openat(AT_FDCWD, "/etc/resolv.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=23, ...}, AT_EMPTY_PATH) = 0
read(3, "nameserver 192.168.1.1\n", 4096) = 23
read(3, "", 4096)                       = 0
uname({sysname="Linux", nodename="debian", ...}) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=23, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/hosts", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=186, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "127.0.0.1\tlocalhost\n127.0.1.1\tde"..., 4096) = 186
read(3, "", 4096)                       = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=16890, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 16890, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3583582000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_myhostname.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=141504, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 145680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3583373000
mmap(0x7f3583377000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0x7f3583377000
mmap(0x7f3583387000, 45056, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f3583387000
mmap(0x7f3583392000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f3583392000
close(3)                                = 0
mprotect(0x7f3583392000, 16384, PROT_READ) = 0
munmap(0x7f3583582000, 16890)           = 0
rt_sigprocmask(SIG_BLOCK, [HUP USR1 USR2 PIPE ALRM CHLD TSTP URG VTALRM PROF WINCH IO], [], 8) = 0
uname({sysname="Linux", nodename="debian", ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=16890, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 16890, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f3583582000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libnss_resolve.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=141584, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 141624, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3583350000
mmap(0x7f3583353000, 94208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f3583353000
mmap(0x7f358336a000, 28672, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f358336a000
mmap(0x7f3583371000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x21000) = 0x7f3583371000
close(3)                                = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=907784, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 909560, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f3582f21000
mmap(0x7f3582f31000, 471040, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10000) = 0x7f3582f31000
mmap(0x7f3582fa4000, 368640, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x83000) = 0x7f3582fa4000
mmap(0x7f3582ffe000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xdc000) = 0x7f3582ffe000
close(3)                                = 0
mprotect(0x7f3582ffe000, 4096, PROT_READ) = 0
mprotect(0x7f3583371000, 4096, PROT_READ) = 0
munmap(0x7f3583582000, 16890)           = 0
rt_sigprocmask(SIG_BLOCK, [HUP USR1 USR2 PIPE ALRM CHLD TSTP URG VTALRM PROF WINCH IO], [], 8) = 0
futex(0x7f3583372900, FUTEX_WAKE_PRIVATE, 2147483647) = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/run/systemd/resolve/io.systemd.Resolve"}, 42) = 0
sendto(3, "{\"method\":\"io.systemd.Resolve.Re"..., 97, MSG_DONTWAIT|MSG_NOSIGNAL, NULL, 0) = 97
mmap(NULL, 135168, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f358332f000
recvfrom(3, 0x7f358332f010, 135152, MSG_DONTWAIT, NULL, NULL) = -1 EAGAIN (Ресурс временно недоступен)
ppoll([{fd=3, events=POLLIN}], 1, {tv_sec=119, tv_nsec=999851000}, NULL, 8) = 1 ([{fd=3, revents=POLLIN}], left {tv_sec=119, tv_nsec=999749600})
recvfrom(3, "{\"error\":\"io.systemd.Resolve.NoN"..., 135152, MSG_DONTWAIT, NULL, NULL) = 61
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
close(3)                                = 0
munmap(0x7f358332f000, 135168)          = 0
exit_group(2)                           = ?
+++ exited with 2 +++

Лия

#14
systemd-resolved установлен?
$ dpkg --list | grep systemd-resolved