Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add apt repo failed #452

Open
Jeane212 opened this issue Dec 10, 2024 · 13 comments
Open

add apt repo failed #452

Jeane212 opened this issue Dec 10, 2024 · 13 comments

Comments

@Jeane212
Copy link

Describe the bug
Failed when execute this commandsudo add-apt-repository ppa:yuezk/globalprotect-openconnect

Logs

sudo add-apt-repository ppa:yuezk/globalprotect-openconnect
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 364, in <module>
    sys.exit(0 if addaptrepo.main() else 1)
  File "/usr/bin/add-apt-repository", line 347, in main
    shortcut = handler(source, **shortcut_params)
  File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
    return handler(shortcut, **kwargs)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in __init__
    if self.lpppa.publish_debug_symbols:
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
    self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
    self._lpteam = self.lp.people(self.teamname)
  File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
    self._lp = login_func("%s.%s" % (self.__module__, self.__class__.__name__),
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
    return cls(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in __init__
    super(Launchpad, self).__init__(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in __init__
    self._wadl = self._browser.get_wadl_application(self._root_uri)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
    response, content = self._request(url, media_type=wadl_type)
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
    response, content = self._request_and_retry(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
    response, content = self._connection.request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1693, in request
    (response, new_content) = self._request(
  File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
    response, content = super(LaunchpadOAuthAwareHttp, self)._request(
  File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
    return super(RestfulHttp, self)._request(
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1441, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1363, in _conn_request
    conn.connect()
  File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1155, in connect
    self.sock = self._context.wrap_socket(sock, server_hostname=self.host)
  File "/usr/lib/python3.10/ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.10/ssl.py", line 1100, in _create
    self.do_handshake()
  File "/usr/lib/python3.10/ssl.py", line 1371, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)

Environment:

  • OS: [Ubuntu 22.04]
  • Desktop Environment: [GNOME Shell 42.9]
  • Output of ps aux | grep 'gnome-keyring\|kwalletd5' | grep -v grep: [Nothing]
Screenshot 2024-12-10 at 2 28 38 PM
  • Is remote SSH? [Yes]
@blalande
Copy link

I have the same issue on a fresh install of Pikalinux (debian based), use hyprland

@yuezk
Copy link
Owner

yuezk commented Dec 11, 2024

You can install it with this command and see what happens.

curl -o- https://raw.githubusercontent.com/yuezk/GlobalProtect-openconnect/main/scripts/deb-install.sh \
  | bash -s -- 2.3.9

@blalande
Copy link

When using this command I have a dependancy error with libicu74 and libjpeg8 that dont seem to be available

@yuezk
Copy link
Owner

yuezk commented Dec 11, 2024

can you paste the full logs?

@yuezk
Copy link
Owner

yuezk commented Dec 11, 2024

@Jeane212 can you update the ca-certificates and try it again?

sudo apt install ca-certificates

@Jeane212
Copy link
Author

Jeane212 commented Dec 11, 2024

@Jeane212 can you update the ca-certificates and try it again?

sudo apt install ca-certificates

Here is the result

sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20240203~22.04.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gir1.2-javascriptcoregtk-4.0 : Depends: libjavascriptcoregtk-4.0-18 (= 2.46.3-0ubuntu0.22.04.1) but 2.43.3-1 is to be installed
 gir1.2-webkit2-4.0 : Depends: libwebkit2gtk-4.0-37 (= 2.46.3-0ubuntu0.22.04.1) but 2.43.3-1 is to be installed
 libjavascriptcoregtk-4.0-18 : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
                               Depends: libicu74 (>= 74.1-1~) but it is not installable
                               Depends: libstdc++6 (>= 13) but 12.3.0-1ubuntu1~22.04 is to be installed
 libwebkit2gtk-4.0-37 : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
                        Depends: libgcrypt20 (>= 1.10.0) but 1.9.4-3ubuntu3 is to be installed
                        Depends: libglib2.0-0 (>= 2.75.3) but 2.72.4-0ubuntu2.4 is to be installed
                        Depends: libgstreamer1.0-0 (>= 1.22.0) but 1.20.3-0ubuntu1 is to be installed
                        Depends: libicu74 (>= 74.1-1~) but it is not installable
                        Depends: libstdc++6 (>= 13.1) but 12.3.0-1ubuntu1~22.04 is to be installed
                        Depends: libwebp7 (>= 1.3.2) but 1.2.2-2ubuntu0.22.04.2 is to be installed
                        Depends: libwebpdemux2 (>= 1.3.2) but 1.2.2-2ubuntu0.22.04.2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

After that i execute
sudo apt --fix-broken install

And here's the result

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
Suggested packages:
  gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-alsa
The following packages will be upgraded:
  libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 33.3 MB of archives.
After this operation, 10.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And execute --fix-missing is comeback again to --fix-broken install

What should i do?

@Jeane212
Copy link
Author

Jeane212 commented Dec 11, 2024

You can install it with this command and see what happens.

curl -o- https://raw.githubusercontent.com/yuezk/GlobalProtect-openconnect/main/scripts/deb-install.sh \
  | bash -s -- 2.3.9

I've tried this too

Here's the result

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--100  1729  100  1729    0     0  21124      0 --:--:-- --:--:-- --:--:-- 21345
--2024-12-11 19:11:15--  http://launchpadlibrarian.net/704701345/libjavascriptcoregtk-4.0-18_2.43.3-1_amd64.deb
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.228, 185.125.189.229, 2620:2d:4000:1009::13e, ...                      Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.228|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10148010 (9.7M) [application/x-debian-package]
Saving to: '/tmp/libjavascriptcoregtk.deb'

/tmp/libjavascrip 100%[=============>]   9.68M  2.48MB/s    in 3.9s

2024-12-11 19:11:20 (2.48 MB/s) - '/tmp/libjavascriptcoregtk.deb' saved [10148010/10148010]

--2024-12-11 19:11:20--  http://launchpadlibrarian.net/704701349/libwebkit2gtk-4.0-37_2.43.3-1_amd64.deb
Resolving launchpadlibrarian.net (launchpadlibrarian.net)... 185.125.189.229, 185.125.189.228, 2620:2d:4000:1009::13e, ...
Connecting to launchpadlibrarian.net (launchpadlibrarian.net)|185.125.189.229|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27906698 (27M) [application/x-debian-package]
Saving to: '/tmp/libwebkit2gtk.deb'

/tmp/libwebkit2gt 100%[=============>]  26.61M  5.48MB/s    in 5.8s

2024-12-11 19:11:26 (4.60 MB/s) - '/tmp/libwebkit2gtk.deb' saved [27906698/27906698]

(Reading database ... 82997 files and directories currently installed.)
Preparing to unpack /tmp/libjavascriptcoregtk.deb ...
Unpacking libjavascriptcoregtk-4.0-18:amd64 (2.43.3-1) over (2.43.3-1) ...
Preparing to unpack /tmp/libwebkit2gtk.deb ...
Unpacking libwebkit2gtk-4.0-37:amd64 (2.43.3-1) over (2.43.3-1) ...
dpkg: dependency problems prevent configuration of libjavascriptcoregtk-4.0-18:amd64:
 libjavascriptcoregtk-4.0-18:amd64 depends on libc6 (>= 2.38); however:
  Version of libc6:amd64 on system is 2.35-0ubuntu3.8.
 libjavascriptcoregtk-4.0-18:amd64 depends on libicu74 (>= 74.1-1~); however:
  Package libicu74 is not installed.
 libjavascriptcoregtk-4.0-18:amd64 depends on libstdc++6 (>= 13); however:
  Version of libstdc++6:amd64 on system is 12.3.0-1ubuntu1~22.04.

dpkg: error processing package libjavascriptcoregtk-4.0-18:amd64 (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libwebkit2gtk-4.0-37:amd64:
 libwebkit2gtk-4.0-37:amd64 depends on libjavascriptcoregtk-4.0-18 (= 2.43.3-1); however:
  Package libjavascriptcoregtk-4.0-18:amd64 is not configured yet.
 libwebkit2gtk-4.0-37:amd64 depends on libc6 (>= 2.38); however:
  Version of libc6:amd64 on system is 2.35-0ubuntu3.8.
 libwebkit2gtk-4.0-37:amd64 depends on libgcrypt20 (>= 1.10.0); however:  Version of libgcrypt20:amd64 on system is 1.9.4-3ubuntu3.
 libwebkit2gtk-4.0-37:amd64 depends on libglib2.0-0 (>= 2.75.3); however:
  Version of libglib2.0-0:amd64 on system is 2.72.4-0ubuntu2.4.
 libwebkit2gtk-4.0-37:amd64 depends on libgstreamer1.0-0 (>= 1.22.0); however:
  Version of libgstreamer1.0-0:amd64 on system is 1.20.3-0ubuntu1.
 libwebkit2gtk-4.0-37:amd64 depends on libicu74 (>= 74.1-1~); however:
  Package libicu74 is not installed.
 libwebkit2gtk-4.0-37:amd64 depends on libstdc++6 (>= 13.1); however:
  Version of libstdc++6:amd64 on system is 12.3.0-1ubuntu1~22.04.
 libwebkit2gtk-4.0-37:amd64 depends on libwebp7 (>= 1.3.2); however:
  Version of libwebp7:amd64 on system is 1.2.2-2ubuntu0.22.04.2.
 libwebkit2gtk-4.0-37:amd64 depends on libwebpdemux2 (>= 1.3.2); however:
  Version of libwebpdemux2:amd64 on system is 1.2.2-2ubuntu0.22.04.2.

dpkg: error processing package libwebkit2gtk-4.0-37:amd64 (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
Errors were encountered while processing:
 libjavascriptcoregtk-4.0-18:amd64
 libwebkit2gtk-4.0-37:amd64```


@yuezk
Copy link
Owner

yuezk commented Dec 11, 2024

@Jeane212 Ubuntu 22.04 should not use the manual install script. Adding the PPA is the right way to install it.

@yuezk
Copy link
Owner

yuezk commented Dec 11, 2024

Do you want to continue? [Y/n] Y
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@Jeane212, the log shows that the jammy-updates couldn't find the package. But the package does exist on the jammy repos.

https://launchpad.net/ubuntu/jammy/+package/libjavascriptcoregtk-4.0-18

Can you check your software repository configurations?

@Jeane212
Copy link
Author

Jeane212 commented Dec 11, 2024

Here's my software configuration

1 /etc/apt/apt.conf.d/01-vendor-ubuntu     
2 /etc/apt/apt.conf.d/01autoremove         
3 /etc/cron.daily/apt-compat               
4 /etc/logrotate.d/apt

@Jeane212
Copy link
Author

Do you want to continue? [Y/n] Y
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

@Jeane212, the log shows that the jammy-updates couldn't find the package. But the package does exist on the jammy repos.

https://launchpad.net/ubuntu/jammy/+package/libjavascriptcoregtk-4.0-18

Can you check your software repository configurations?

I've tried the fetch URL on web browser its return 404

SmartSelect_20241212_012402_Chrome

@Jeane212
Copy link
Author

@Jeane212 can you update the ca-certificates and try it again?

sudo apt install ca-certificates

Here is the result

sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20240203~22.04.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gir1.2-javascriptcoregtk-4.0 : Depends: libjavascriptcoregtk-4.0-18 (= 2.46.3-0ubuntu0.22.04.1) but 2.43.3-1 is to be installed
 gir1.2-webkit2-4.0 : Depends: libwebkit2gtk-4.0-37 (= 2.46.3-0ubuntu0.22.04.1) but 2.43.3-1 is to be installed
 libjavascriptcoregtk-4.0-18 : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
                               Depends: libicu74 (>= 74.1-1~) but it is not installable
                               Depends: libstdc++6 (>= 13) but 12.3.0-1ubuntu1~22.04 is to be installed
 libwebkit2gtk-4.0-37 : Depends: libc6 (>= 2.38) but 2.35-0ubuntu3.8 is to be installed
                        Depends: libgcrypt20 (>= 1.10.0) but 1.9.4-3ubuntu3 is to be installed
                        Depends: libglib2.0-0 (>= 2.75.3) but 2.72.4-0ubuntu2.4 is to be installed
                        Depends: libgstreamer1.0-0 (>= 1.22.0) but 1.20.3-0ubuntu1 is to be installed
                        Depends: libicu74 (>= 74.1-1~) but it is not installable
                        Depends: libstdc++6 (>= 13.1) but 12.3.0-1ubuntu1~22.04 is to be installed
                        Depends: libwebp7 (>= 1.3.2) but 1.2.2-2ubuntu0.22.04.2 is to be installed
                        Depends: libwebpdemux2 (>= 1.3.2) but 1.2.2-2ubuntu0.22.04.2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

After that i execute sudo apt --fix-broken install

And here's the result

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
Suggested packages:
  gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-alsa
The following packages will be upgraded:
  libjavascriptcoregtk-4.0-18 libwebkit2gtk-4.0-37
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 33.3 MB of archives.
After this operation, 10.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Ign:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
Ign:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
Err:1 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libwebkit2gtk-4.0-37 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libjavascriptcoregtk-4.0-18 amd64 2.46.3-0ubuntu0.22.04.1
  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libwebkit2gtk-4.0-37_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/w/webkit2gtk/libjavascriptcoregtk-4.0-18_2.46.3-0ubuntu0.22.04.1_amd64.deb  404  Not Found [IP: 185.125.190.81 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

And execute --fix-missing is comeback again to --fix-broken install

What should i do?

I think the certificate is newest one based on this message

ca-certificates is already the newest version (20240203~22.04.1).

@Jeane212
Copy link
Author

@Jeane212 can you update the ca-certificates and try it again?

sudo apt install ca-certificates

Updated the latest command

sudo apt install ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
ca-certificates is already the newest version (20240203~22.04.1).
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

After that i executed sudo add-apt-repository ppa:yuezk/globalprotect-openconnect again

The error still same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants