Arch Linux에서 NetworkManager를 시작할 수 없습니다: 기호 조회 오류: /usr/lib/libcurl.so.4: 정의되지 않은 기호: libssh2_session_set_read_timeout

Arch Linux에서 NetworkManager를 시작할 수 없습니다: 기호 조회 오류: /usr/lib/libcurl.so.4: 정의되지 않은 기호: libssh2_session_set_read_timeout

지난 목요일에 Arch Linux 설치를 업데이트했고 금요일에 재부팅했을 때 시스템에 여러 문제가 발생했습니다. 저는 Arch Linux(또는 일반적으로 Linux) 커뮤니티에 처음 입문했는데 다시 작동시키려면 어떻게 해야 할지 모르겠습니다.

대부분의 응용 프로그램과 네트워크가 시작되지 않습니다. 저는 GUI 관리자로 KDE Plasma를 사용합니다. 메뉴를 클릭하면 다음과 같은 결과가 나타납니다.

file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/Kickoff.qml:19:1: plugin cannot be loaded for module "org.kde.plasma.private.kicker": Cannot load library /usr/lib/qt/qml/org/kde/plasma/private/kicker/libkickerplugin.so: (libicui18n.so.73: cannot open shared object file: No such file or directory)

플러그인을 확인하면 다음과 같은 결과 pacman -Qo /usr/lib/qt/qml/org/kde/plasma/private/kicker/libkickerplugin.so가 나타납니다. pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout

따르다포럼 게시물설치를 확인했어요ls -l /usr/lib/libssh*

lrwxrwxrwx 1 root root     16 Nov  1  2022 /usr/lib/libssh2.so -> libssh2.so.1.0.1
lrwxrwxrwx 1 root root     16 Nov  1  2022 /usr/lib/libssh2.so.1 -> libssh2.so.1.0.1
-rwxr-xr-x 1 root root 268552 Nov  1  2022 /usr/lib/libssh2.so.1.0.1
lrwxrwxrwx 1 root root     11 May  4 14:43 /usr/lib/libssh.so -> libssh.so.4
lrwxrwxrwx 1 root root     15 May  4 14:43 /usr/lib/libssh.so.4 -> libssh.so.4.9.5
-rwxr-xr-x 1 root root 445776 May  4 14:43 /usr/lib/libssh.so.4.9.5

(동료들도 마찬가지)

상태를 확인하면 sudo systenctl status NetworkManager.service다음과 같은 결과가 나타납니다.

× NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Fri 2023-07-28 09:17:10 CEST; 44min ago
       Docs: man:NetworkManager(8)
    Process: 1261 ExecStart=/usr/bin/NetworkManager --no-daemon (code=exited, status=127)
   Main PID: 1261 (code=exited, status=127)
        CPU: 9ms

Jul 28 09:17:10 brunb513 systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 5.
Jul 28 09:17:10 brunb513 systemd[1]: Stopped Network Manager.
Jul 28 09:17:10 brunb513 systemd[1]: NetworkManager.service: Start request repeated too quickly.
Jul 28 09:17:10 brunb513 systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
Jul 28 09:17:10 brunb513 systemd[1]: Failed to start Network Manager.
Jul 28 09:17:10 brunb513 systemd[1]: Starting Network Manager...

journalctl -xeu NetworkManager.service내가 얻은 것 :

░░ Subject: A start job for unit NetworkManager.service has begun execution
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit NetworkManager.service has begun execution.
░░ 
░░ The job identifier is 100.
Jul 28 09:17:10 brunb513 NetworkManager[1068]: /usr/bin/NetworkManager: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout
Jul 28 09:17:10 brunb513 systemd[1]: NetworkManager.service: Main process exited, code=exited, status=127/n/a
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit NetworkManager.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 127.
Jul 28 09:17:10 brunb513 systemd[1]: NetworkManager.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit NetworkManager.service has entered the 'failed' state with result 'exit-code'.
Jul 28 09:17:10 brunb513 systemd[1]: Failed to start Network Manager.
░░ Subject: A start job for unit NetworkManager.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit NetworkManager.service has finished with a failure.
░░ 
░░ The job identifier is 100 and the job result is failed.
Jul 28 09:17:10 brunb513 systemd[1]: NetworkManager.service: Scheduled restart job, restart counter is at 1.
...

그래서 문제가 있는 것 같아요libcurl

네트워크 설정을 시도했지만 소용이 없었습니다.

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s13f0u2u1c2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether a0:ce:c8:92:e9:ca brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
    link/ether 7c:21:4a:b1:06:70 brd ff:ff:ff:ff:ff:ff
4: br-37febc211f8d: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default 
    link/ether 02:42:88:b3:02:84 brd ff:ff:ff:ff:ff:ff
6: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default 
    link/ether 02:42:6b:02:be:9c brd ff:ff:ff:ff:ff:ff

그러나 ip link set <Network> up그것은 아무것도 하지 않습니다.

snapper다음을 사용하여 이전 버전으로 재설정을 시도했습니다 .

1821  | single |       | Mon 24 Jul 2023 11:00:00 AM CEST | root | timeline | timeline                                                                 |              
1828  | single |       | Thu 27 Jul 2023 09:00:00 AM CEST | root | timeline | timeline                                                                 |              
1836  | pre    |       | Thu 27 Jul 2023 04:17:44 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1837  | post   |  1836 | Thu 27 Jul 2023 04:17:46 PM CEST | root | number   | chromium cmake cppdap dolphin plasma-workspace                           |              
1838  | pre    |       | Thu 27 Jul 2023 04:18:19 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1839  | post   |  1838 | Thu 27 Jul 2023 04:18:19 PM CEST | root | number   | kate kinfocenter kmenuedit konsole plasma-systemmonitor qt5-tools specta |              
1840  | pre    |       | Thu 27 Jul 2023 04:18:34 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1841  | post   |  1840 | Thu 27 Jul 2023 04:18:39 PM CEST | root | number   | fwupd jdk17-openjdk jre17-openjdk jre17-openjdk-headless yakuake         |              
1842  | pre    |       | Thu 27 Jul 2023 04:20:44 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1843  | post   |  1842 | Thu 27 Jul 2023 04:20:45 PM CEST | root | number   | discover kdeplasma-addons plasma-desktop plasma-disks plasma-firewall    |              
1844  | pre    |       | Thu 27 Jul 2023 04:21:04 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1845  | post   |  1844 | Thu 27 Jul 2023 04:21:04 PM CEST | root | number   | bluedevil plasma-nm plasma-pa plasma-vault                               |              
1846  | pre    |       | Thu 27 Jul 2023 04:21:32 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1847  | post   |  1846 | Thu 27 Jul 2023 04:21:32 PM CEST | root | number   | ark                                                                      |              
1848  | pre    |       | Thu 27 Jul 2023 04:21:46 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1849  | post   |  1848 | Thu 27 Jul 2023 04:21:50 PM CEST | root | number   | alsa-card-profiles plasma-welcome systemsettings                         |              
1850  | pre    |       | Thu 27 Jul 2023 04:22:15 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1851  | post   |  1850 | Thu 27 Jul 2023 04:22:15 PM CEST | root | number   | xdg-desktop-portal-kde xfsprogs xkeyboard-config xorg-server xorg-server |              
1852  | pre    |       | Thu 27 Jul 2023 04:22:25 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1853  | post   |  1852 | Thu 27 Jul 2023 04:22:29 PM CEST | root | number   | archlinux-appstream-data archlinux-keyring                               |              
1854  | pre    |       | Thu 27 Jul 2023 04:22:58 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1855  | post   |  1854 | Thu 27 Jul 2023 04:23:07 PM CEST | root | number   | at-spi2-core attica autorandr baloo baloo-widgets bison bluez bluez-libs |              
1856  | pre    |       | Thu 27 Jul 2023 04:23:23 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1857  | post   |  1856 | Thu 27 Jul 2023 04:23:23 PM CEST | root | number   | duktape enchant exiv2 fakeroot flac frameworkintegration freetype2 fuse- |              
1858  | pre    |       | Thu 27 Jul 2023 04:24:55 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1859  | post   |  1858 | Thu 27 Jul 2023 04:24:59 PM CEST | root | number   | ca-certificates-mozilla curl cython docker drkonqi gcab gcc gcc-libs gdb |              
1860  | pre    |       | Thu 27 Jul 2023 04:26:05 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1861  | post   |  1860 | Thu 27 Jul 2023 04:26:06 PM CEST | root | number   | upower util-linux util-linux-libs vulkan-icd-loader vulkan-intel vulkan- |              
1862  | pre    |       | Thu 27 Jul 2023 04:26:26 PM CEST | root | number   | /usr/lib/packagekitd                                                     |              
1863  | post   |  1862 | Thu 27 Jul 2023 04:26:27 PM CEST | root | number   | taglib talloc tar tdb tevent threadweaver tracker3                       |              
1865  | single |       | Fri 28 Jul 2023 09:00:00 AM CEST | root | timeline | timeline                                                                 |              
1879  | single |       | Sat 29 Jul 2023 12:00:00 AM CEST | root | timeline | timeline                                                                 |              
1881  | single |       | Sat 29 Jul 2023 02:00:00 AM CEST | root | timeline | timeline                                                                 |              
1882  | single |       | Sun 30 Jul 2023 01:51:11 AM CEST | root | timeline | timeline                                                                 |              
1883  | single |       | Tue 01 Aug 2023 01:00:00 PM CEST | root | timeline | timeline                                                                 |              
1884  | single |       | Thu 03 Aug 2023 10:00:00 AM CEST | root | timeline | timeline                                                                 |              
1885  | single |       | Thu 03 Aug 2023 11:00:00 AM CEST | root | timeline | timeline                                                                 |              
1886  | single |       | Thu 03 Aug 2023 12:00:00 PM CEST | root | timeline | timeline                                                                 |              
1887  | single |       | Thu 03 Aug 2023 01:00:00 PM CEST | root | timeline | timeline                                                                 |              
1888  | single |       | Thu 03 Aug 2023 02:00:00 PM CEST | root | timeline | timeline                                                                 |              
1889  | single |       | Thu 03 Aug 2023 03:00:00 PM CEST | root | timeline | timeline                                                                 |              
1890  | single |       | Sat 05 Aug 2023 02:47:14 PM CEST | root |          | Rollback before restoring to 1828                                        |              
1891  | single |       | Sat 05 Aug 2023 02:50:08 PM CEST | root | number   | rollback backup                                                          | important=yes
1892  | single |       | Sat 05 Aug 2023 02:50:08 PM CEST | root | number   | writable copy of #1828                                                   |              
1893  | single |       | Sat 05 Aug 2023 02:56:19 PM CEST | root | number   | rollback backup of #1892                                                 | important=yes
1894+ | single |       | Sat 05 Aug 2023 02:56:19 PM CEST | root |          | writable copy of #1828                                                   |              
1895  | single |       | Sat 05 Aug 2023 03:00:00 PM CEST | root | timeline | timeline                                                                 |              

그러나 sudo snapper rollback 1828그것은 도움이 되지 않았습니다.

또 무엇을 시도할 수 있나요? 가능한 한 자세히 설명하거나 이 내용이 처음이므로 링크를 제공해 주세요.

시스템이 손상되어 보안 문자 문제를 해결할 수 없어서 아치 리눅스 포럼 사용자를 생성할 수 없습니다...

답변1

너무 늦지 않았기를 바랍니다. 나도 너와 같은 오류를 겪었어

/usr/lib/libcurl.so.4: 정의되지 않은 기호: libssh2_session_set_read_timeout

그것은 밝혀libssh2의 상위 버전에 새로운 태그 libssh2_session_set_timeout을 추가했습니다.

실수로 libssh2의 상위 버전에 의존하는 컬을 태그로 업데이트했으며 시스템의 libssh2는 여전히 이전 버전인 것 같습니다.

내가 한 일은 새로운 것을 편집한 것입니다.libssh2새 디렉토리에서 시스템의 이전 libssh2를 백업하고 새로 컴파일된 libssh2를 /usr/lib(2개의 lib 파일, libssh2.so.1 libssh2.so.1.0.1)로 이동하여 문제를 해결했습니다. .

관련 정보