Pop!_OS - Интернет (DNS) прервался после попытки исправить общедоступные сети портала

Единственная проблема заключается в том, что в документации нет этой детали. Код обязательно справится с этим.

/* Returns true for all units that are "magic" and should be excluded from the usual start-up and shutdown dependencies. We call them "extrinsic" here, as they are generally mounted outside of the systemd dependency logic. We shouldn't attempt to manage them ourselves but it's fine if the user operates on them with us. */

        if (!MANAGER_IS_SYSTEM(UNIT(m)->manager)) /* We only automatically manage mounts if we are in system mode */
                return true;

        if (PATH_IN_SET(m->where,  /* Don't bother with the OS data itself */
                        "/",
                        "/usr"))
                return true;

        if (PATH_STARTSWITH_SET(m->where,
                                "/run/initramfs",    /* This should stay around from before we boot until after we shutdown */
                                "/proc",             /* All of this is API VFS */
                                "/sys",              /* … dito … */
                                "/dev"))             /* … dito … */
return true;

        /* If this is an initrd mount, and we are not in the initrd, then leave this around forever, too. */
        p = get_mount_parameters(m);
        if (p && fstab_test_option(p->options, "x-initrd.mount\0") && !in_initrd())
                return true;

        return false;
}

Обратите внимание, что похоже, что это не поддерживает случаи, когда вы хотите размонтировать /usrв umount.target. Вероятно, лучше игнорировать заявление systemd о том, что он сам поддерживает монтирование /usrбез initramfs. Это заявление сделано вне репозитория git и в контексте указания на то, что многие важные проекты отказались от поддержки систем, настроенных таким образом.

0
19.12.2019, 18:42
1 ответ

Решение!

Я отредактировал /etc/resolv.confи заменил:

nameserver 127.0.0.53сnameserver 1.1.1.1

Так что тем временем я могу подключиться к интернету. Затем, увидев этот ответ AskUbuntu , я побежал:

sudo apt-get remove --purge resolvconf && sudo apt-get install resolvconf

И перезагрузил компьютер.

1
28.01.2020, 03:00

Теги

Похожие вопросы