LINUX.ORG.RU

Не получатся установить gcc

 


0

1

Не получается установить gcc, вот что выдает:

root@Varlamov-PC:~# sudo apt-get install gcc sudo: unable to resolve host Varlamov-PC: Temporary failure in name resolution Reading package lists… Done Building dependency tree… Done Reading state information… Done Package gcc is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: gcc-13-doc

E: Package ‘gcc’ has no installation candidate root@Varlamov-PC:~#

Ответ на: комментарий от ofp

В файле /etc/apt/sources.list прописано вот это:

See the sources.list(5) manual page for further settings.

Types: deb URIs: http://ru.archive.ubuntu.com/ubuntu/ Suites: noble noble-updates noble-backports Components: main universe restricted multiverse Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Ubuntu security updates. Aside from URIs and Suites,

«/etc/apt/sources.list.d/ubuntu.sources» 44L, 2555B

Radius63
() автор топика
Ответ на: комментарий от Merionet

Вот что выдает на apt update: root@Varlamov-PC:~# apt update Ign:1 http://ru.archive.ubuntu.com/ubuntu noble InRelease Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:3 http://ru.archive.ubuntu.com/ubuntu noble-updates InRelease Ign:4 http://ru.archive.ubuntu.com/ubuntu noble-backports InRelease Ign:1 http://ru.archive.ubuntu.com/ubuntu noble InRelease Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:3 http://ru.archive.ubuntu.com/ubuntu noble-updates InRelease Ign:4 http://ru.archive.ubuntu.com/ubuntu noble-backports InRelease Ign:1 http://ru.archive.ubuntu.com/ubuntu noble InRelease Ign:2 http://security.ubuntu.com/ubuntu noble-security InRelease Ign:3 http://ru.archive.ubuntu.com/ubuntu noble-updates InRelease Ign:4 http://ru.archive.ubuntu.com/ubuntu noble-backports InRelease Err:1 http://ru.archive.ubuntu.com/ubuntu noble InRelease Temporary failure resolving ‘ru.archive.ubuntu.com’ Err:2 http://security.ubuntu.com/ubuntu noble-security InRelease Temporary failure resolving ‘security.ubuntu.com’ Err:3 http://ru.archive.ubuntu.com/ubuntu noble-updates InRelease Temporary failure resolving ‘ru.archive.ubuntu.com’ Err:4 http://ru.archive.ubuntu.com/ubuntu noble-backports InRelease Temporary failure resolving ‘ru.archive.ubuntu.com’ Reading package lists… Done Building dependency tree… Done Reading state information… Done All packages are up to date. W: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/dists/noble/InRelease Temporary failure resolving ‘ru.archive.ubuntu.com’ W: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/dists/noble-updates/InRelease Temporary failure resolving ‘ru.archive.ubuntu.com’ W: Failed to fetch http://ru.archive.ubuntu.com/ubuntu/dists/noble-backports/InRelease Temporary failure resolving ‘ru.archive.ubuntu.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/InRelease Temporary failure resolving ‘security.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.

Radius63
() автор топика
Ответ на: комментарий от Merionet

в системд какая-то сумашедшая реализация судо с ссш до локалхоста

О, спасибо, как-то прозевал этот момент. Надо будет попробовать. И никакого ssh там нет, это ссылка на systemd-run. Правда, не уверен, что используемый там polkit сильно лучше, чем помойка sudo 😅

anonymous
()
Ответ на: комментарий от Merionet

На 4 буквы меньше? Насчёт «современный и удобный» - не замечал между ними никакой разницы, кроме того что у apt не заявлен стабильный интерфейс. Что и не удивительно, ведь apt обёртка над тем же самым.

firkax ★★★★★
()
Последнее исправление: firkax (всего исправлений: 1)