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:~#

Зачем судо, если выполняется уже от рута? С репами всё хорошо, обновлены? Почему apt-get, а не apt?

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

так - лучше не отвечать, ты что не видишь, он ни бум-бум

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

Тут вообще не понятно почему у него apt-get пытается отрезольвить хост, который он сам так и назвал. Radius63, а что у тебя правда прописано в /etc/apt/sources.list?

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

Тут вообще не понятно почему у него apt-get пытается отрезольвить хост, который он сам так и назвал.

sudo пытается.

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

Может у него судо не может отрезолвить? У меня просто нет системд, в системд какая-то сумашедшая реализация судо с ссш до локалхоста.

Merionet
()
Ответ на: комментарий от 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
() автор топика

Проблема либо в репах, либо в доступе к ним (например, сервер на обслуживании).

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

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

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

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

А, это сам и в техподдержке microsoft, а не тут.

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

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

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

Это не только apt-get, но и apt-cache в одной команде. Плюс мелочи, вроде прогрессбара.

Merionet
()
Для того чтобы оставить комментарий войдите или зарегистрируйтесь.