Error multiverse invalid

I have this Dockerfile: FROM node:11 USER root WORKDIR /tmp RUN apt-get update RUN apt-get install -y software-properties-common RUN add-apt-repository multiverse RUN add-apt-repository universe ...

I have this Dockerfile:

FROM node:11

USER root

WORKDIR /tmp
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository multiverse
RUN add-apt-repository universe

I am getting this error:

Error: ‘multiverse’ invalid
The command ‘/bin/sh -c add-apt-repository multiverse’ returned a non-zero code: 1

How can I get this to work?

zx485's user avatar

zx485

2,18311 gold badges23 silver badges31 bronze badges

asked Apr 16, 2020 at 21:23

Alexander Mills's user avatar

Alexander MillsAlexander Mills

6164 gold badges11 silver badges26 bronze badges

0

I apparently solved it by doing this:

RUN sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
RUN sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list

Instead of this:

RUN add-apt-repository multiverse
RUN add-apt-repository universe

KyleMit's user avatar

answered Apr 16, 2020 at 21:27

Alexander Mills's user avatar

Alexander MillsAlexander Mills

6164 gold badges11 silver badges26 bronze badges

Thank you very much Alexander Mills, I had the same problem and I was able to solve it on my system (Q4OS 3.10.3) with:

sudo sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
sudo sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list

KyleMit's user avatar

answered May 6, 2020 at 11:37

Pere Pou's user avatar

0

But im still facing this problem😔

answered Apr 22, 2022 at 9:09

Sana's user avatar

1

Ошибка: ‘мультивселенная’, недопустимая + Ошибка: недопустимая ‘вселенная’

У меня есть этот Dockerfile:

FROM node:11

USER root

WORKDIR /tmp
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository multiverse
RUN add-apt-repository universe

Я добираюсь:

Error: 'multiverse' invalid
The command '/bin/sh -c add-apt-repository multiverse' returned a non-zero code: 1

wtf продолжается? жаль о языке

задан
17 April 2020 в 00:23

поделиться

2 ответа

Я, по-видимому, решил его путем выполнения этого:

RUN sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
RUN sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list

вместо

RUN add-apt-repository multiverse
RUN add-apt-repository universe

какой набор ерунды извините lol, но jfc

ответ дан
25 April 2020 в 10:46

поделиться

Большое спасибо, Александр Миллс, у меня была такая же проблема, и я смог решить ее в своей системе (Q4OS 3.10.3) с помощью:

sudo sed -i "/^# deb.*multiverse/ s/^# //" /etc/apt/sources.list
sudo sed -i "/^# deb.*universe/ s/^# //" /etc/apt/sources.list

ответ дан Pere Pou
6 May 2020 в 11:37

поделиться

Другие вопросы по тегам:

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

I am running Kali Linux rolling 2017.2 iso

I have done the following command:

sudo apt-add-repository multiverse 

and I received the following error message:

traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 95, in >module<
Sp = SoftwareProperties (options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/softwareproperties.py"
Line 109, in__ini__
Self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/softwareproperties.py"
Line 599, in reload_sourceslist
Self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id,self.codename))
Aptsources.distro.NoDistroTemplateException: Error: Could not find a distribution template for kali/kali-rolling

How to fix this please? thank you

dr_'s user avatar

dr_

27.4k18 gold badges85 silver badges125 bronze badges

asked Nov 22, 2021 at 14:28

Zac's user avatar

1

You can’t add a Ubuntu repository to a Kali distribution. (Or any non-Kali repository for that matter.) Either use Ubuntu or stick with Kali’s repository.

See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/ and read the section «Non-Kali Repositories», which also states,

By adding Kali’s repository to a non-Kali OS (such as trying to add Kali to Ubuntu), this will highly increase the chance of your system not working. It may not happen straight away, but without any warning, it may break. We will not be able to offer support (and based on what we have seen over the years, most other OS will not help too).

Likewise, adding other operating system’s repositories into Kali (such as trying to put Ubuntu on Kali), will break your installation. This is the single most common reason why Kali Linux systems break.

And finally,

If any guides are telling you to do anything else than the above, this is unofficial advice, and completely not supported by Kali Linux. More often than not, users in this case end up doing a reinstall after learning this lesson.

answered Nov 22, 2021 at 14:31

roaima's user avatar

roaimaroaima

99.1k14 gold badges126 silver badges239 bronze badges

On Kali Linux, apt-add-repository accept only main, contrib and non-free distribution components.

multiverse is a Ubuntu distribution component.

In the latest Kali release, apt-add-repository multiverse will print:

Error: 'multiverse' invalid

As said @roaima adding non-Kali repo will break your system.

To fix the problem in the old Kali 2017 use:

sudo apt-add-repository --remove multiverse 

answered Nov 22, 2021 at 17:56

GAD3R's user avatar

GAD3RGAD3R

60.9k30 gold badges126 silver badges189 bronze badges

Понравилась статья? Поделить с друзьями:
  • Error multiplex veritas una перевод
  • Error multiple updates to a row by the same query is not allowed
  • Error multiple types in one declaration
  • Error multiple storage classes in declaration specifiers
  • Error multiple primary keys for table are not allowed