"./configure" 출력에 표시된 것처럼 "network-manager-sstp" 종속성을 설치하려고 하면 루프가 발생합니다.

"./configure" 출력에 표시된 것처럼 "network-manager-sstp" 종속성을 설치하려고 하면 루프가 발생합니다.

설치하려고 하는데네트워크 관리자 sstp, 하지만 종속 항목을 설치하려고 하면 루프에 갇히게 됩니다. ./configure출력은 두 개의 서로 다른 종속성이 누락되었음을 알려주는 사이에서 진동합니다( libnma그리고 libnm-gtk- 하나를 설치할 때마다 1분 전에 설치했는지 여부에 관계없이 다른 하나를 사용할 수 없다고 불평합니다.

어떻게 이런 일이 발생하며 어떻게 해결할 수 있나요?

문제는 다음과 같습니다.

$ ./configure

configure: error: Package requirements (libnm-gtk >= 1.2.0) were not met:

No package 'libnm-gtk' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNM_GTK_CFLAGS
and LIBNM_GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

...그래서 설치하러 갔어요

$ sudo apt-get install libnm-gtk-dev

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gir1.2-nm-1.0 : Breaks: gir1.2-networkmanager-1.0 (< 1.8.0-2) but 1.6.2-3+deb9u2 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

...그래서 설치를 진행합니다 gir1.2-networkmanager-1.0.

$ sudo apt-get install gir1.2-networkmanager-1.0

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  evolution-data-server evolution-data-server-common gir1.2-accountsservice-1.0 gir1.2-gck-1 gir1.2-gcr-3
  gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0
  gir1.2-graphene-1.0 gir1.2-gweather-3.0 gir1.2-json-1.0 gir1.2-mutter-7 gir1.2-polkit-1.0 gir1.2-rsvg-2.0
  gir1.2-soup-2.4 gir1.2-upowerglib-1.0 gjs gnome-backgrounds gnome-menus gnome-session-bin gnome-session-common
  gnome-shell-common gstreamer1.0-pipewire libcamel-1.2-62 libdbus-glib-1-dev libdbus-glib-1-dev-bin libebackend-1.2-10
  libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-25
  libedataserverui-1.2-2 libgdata-common libgdata22 libgdm1 libgjs0g libgnome-autoar-0-0 libmozjs-78-0 libmutter-7-0
  libnm-gtk0 mutter-common network-manager-dev switcheroo-control xwayland
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  gir1.2-nm-1.0 gir1.2-nma-1.0 libnm-dev libnma-dev
The following NEW packages will be installed:
  gir1.2-networkmanager-1.0
0 upgraded, 1 newly installed, 4 to remove and 5 not upgraded.
Need to get 0 B/310 kB of archives.
After this operation, 10.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 348213 files and directories currently installed.)
Removing libnma-dev:amd64 (1.8.30-1) ...
Removing libnm-dev:amd64 (1.30.0-2) ...
Removing gir1.2-nma-1.0:amd64 (1.8.30-1) ...
Removing gir1.2-nm-1.0:amd64 (1.30.0-2) ...
Selecting previously unselected package gir1.2-networkmanager-1.0:amd64.
(Reading database ... 347899 files and directories currently installed.)
Preparing to unpack .../gir1.2-networkmanager-1.0_1.6.2-3+deb9u2_amd64.deb ...
Unpacking gir1.2-networkmanager-1.0:amd64 (1.6.2-3+deb9u2) ...
Setting up gir1.2-networkmanager-1.0:amd64 (1.6.2-3+deb9u2) ...

...libnm-gtk-dev 설치가 성공적으로 완료되었습니다.

$ sudo apt-get install libnm-gtk-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  evolution-data-server evolution-data-server-common gir1.2-accountsservice-1.0 gir1.2-gck-1 gir1.2-gcr-3 gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0
  gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-graphene-1.0 gir1.2-gweather-3.0 gir1.2-json-1.0 gir1.2-mutter-7 gir1.2-polkit-1.0 gir1.2-rsvg-2.0 gir1.2-soup-2.4
  gir1.2-upowerglib-1.0 gjs gnome-backgrounds gnome-menus gnome-session-bin gnome-session-common gnome-shell-common gstreamer1.0-pipewire libcamel-1.2-62 libebackend-1.2-10
  libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-25 libedataserverui-1.2-2 libgdata-common libgdata22 libgdm1 libgjs0g
  libgnome-autoar-0-0 libmozjs-78-0 libmutter-7-0 mutter-common switcheroo-control xwayland
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-nmgtk-1.0 libnm-glib-dev libnm-util-dev
The following NEW packages will be installed:
  gir1.2-nmgtk-1.0 libnm-glib-dev libnm-gtk-dev libnm-util-dev
0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded.
Need to get 0 B/992 kB of archives.
After this operation, 6,471 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package gir1.2-nmgtk-1.0:amd64.
(Reading database ... 347906 files and directories currently installed.)
Preparing to unpack .../gir1.2-nmgtk-1.0_1.4.4-1+deb9u1_amd64.deb ...
Unpacking gir1.2-nmgtk-1.0:amd64 (1.4.4-1+deb9u1) ...
Selecting previously unselected package libnm-util-dev:amd64.
Preparing to unpack .../libnm-util-dev_1.6.2-3+deb9u2_amd64.deb ...
Unpacking libnm-util-dev:amd64 (1.6.2-3+deb9u2) ...
Selecting previously unselected package libnm-glib-dev:amd64.
Preparing to unpack .../libnm-glib-dev_1.6.2-3+deb9u2_amd64.deb ...
Unpacking libnm-glib-dev:amd64 (1.6.2-3+deb9u2) ...
Selecting previously unselected package libnm-gtk-dev:amd64.
Preparing to unpack .../libnm-gtk-dev_1.4.4-1+deb9u1_amd64.deb ...
Unpacking libnm-gtk-dev:amd64 (1.4.4-1+deb9u1) ...
Setting up gir1.2-nmgtk-1.0:amd64 (1.4.4-1+deb9u1) ...
Setting up libnm-util-dev:amd64 (1.6.2-3+deb9u2) ...
Setting up libnm-glib-dev:amd64 (1.6.2-3+deb9u2) ...
Setting up libnm-gtk-dev:amd64 (1.4.4-1+deb9u1) ...

...그런 다음 다시 구성해 보세요. 이제 더 이상 오류가 발생하지 않습니다.

$ ./configure

No package 'libnma' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNMA_CFLAGS
and LIBNMA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

...그래서 가서 설치하겠습니다 libnma.

$ sudo apt-get install libnma-dev
        
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  evolution-data-server evolution-data-server-common gir1.2-accountsservice-1.0 gir1.2-gck-1 gir1.2-gcr-3
  gir1.2-gdesktopenums-3.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0
  gir1.2-graphene-1.0 gir1.2-gweather-3.0 gir1.2-json-1.0 gir1.2-mutter-7 gir1.2-polkit-1.0 gir1.2-rsvg-2.0
  gir1.2-soup-2.4 gir1.2-upowerglib-1.0 gjs gnome-backgrounds gnome-menus gnome-session-bin gnome-session-common
  gnome-shell-common gstreamer1.0-pipewire libcamel-1.2-62 libdbus-glib-1-dev libdbus-glib-1-dev-bin libebackend-1.2-10
  libebook-1.2-20 libebook-contacts-1.2-3 libecal-2.0-1 libedata-book-1.2-26 libedata-cal-2.0-1 libedataserver-1.2-25
  libedataserverui-1.2-2 libgdata-common libgdata22 libgdm1 libgjs0g libgnome-autoar-0-0 libmozjs-78-0 libmutter-7-0
  libnm-glib4 libnm-gtk0 libnm-util2 mutter-common network-manager-dev switcheroo-control xwayland
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  gir1.2-nm-1.0 gir1.2-nma-1.0 libnm-dev
The following packages will be REMOVED:
  gir1.2-networkmanager-1.0
The following NEW packages will be installed:
  gir1.2-nm-1.0 gir1.2-nma-1.0 libnm-dev libnma-dev
0 upgraded, 4 newly installed, 1 to remove and 5 not upgraded.
Need to get 0 B/860 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 347906 files and directories currently installed.)
Removing gir1.2-networkmanager-1.0:amd64 (1.6.2-3+deb9u2) ...
Selecting previously unselected package gir1.2-nm-1.0:amd64.
(Reading database ... 347899 files and directories currently installed.)
Preparing to unpack .../gir1.2-nm-1.0_1.30.0-2_amd64.deb ...
Unpacking gir1.2-nm-1.0:amd64 (1.30.0-2) ...
Selecting previously unselected package gir1.2-nma-1.0:amd64.
Preparing to unpack .../gir1.2-nma-1.0_1.8.30-1_amd64.deb ...
Unpacking gir1.2-nma-1.0:amd64 (1.8.30-1) ...
Selecting previously unselected package libnm-dev:amd64.
Preparing to unpack .../libnm-dev_1.30.0-2_amd64.deb ...
Unpacking libnm-dev:amd64 (1.30.0-2) ...
Selecting previously unselected package libnma-dev:amd64.
Preparing to unpack .../libnma-dev_1.8.30-1_amd64.deb ...
Unpacking libnma-dev:amd64 (1.8.30-1) ...
Setting up gir1.2-nm-1.0:amd64 (1.30.0-2) ...
Setting up gir1.2-nma-1.0:amd64 (1.8.30-1) ...
Setting up libnm-dev:amd64 (1.30.0-2) ...
Setting up libnma-dev:amd64 (1.8.30-1) ...

...그리고 다시 구성해 보세요.

$ ./configure

configure: error: Package requirements (libnm-gtk >= 1.2.0) were not met:

No package 'libnm-gtk' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBNM_GTK_CFLAGS
and LIBNM_GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

...그리고 루프가 완료되면 다음과 같이 (아마도) 영원히 반복됩니다.

답변1

문제는 저장소 설정으로 인해 발생합니다. libnma-devDebian 11(또는 불안정할 수도 있음)에서 설치하지만 libnm-gtk-devDebian 9에서는 설치하지 않습니다. 하나를 설치하면 다른 하나는 호환되지 않으므로 제거됩니다.

데비안 버전 중 하나를 선택해야 합니다. 두 버전을 혼합하여 모든 것이 작동할 것이라고 기대할 수는 없습니다.

관련 정보