$ 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:
android-studio-2024.1.1
Suggested packages:
lib32z1
The following NEW packages will be installed:
android-studio-2024.1.1
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5,716 B of archives.
After this operation, 28.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 298334 files and directories currently installed.)
Preparing to unpack .../android-studio-2024.1.1_2024.1.1.12~jammy+0_amd64.deb ..
.
--2024-07-20 07:03:27-- https://redirector.gvt1.com/edgedl/android/studio/ide-z
ips/2024.1.1.12/android-studio-2024.1.1.12-linux.tar.gz
Resolving redirector.gvt1.com (redirector.gvt1.com)... 2401:3800:4002:807::1001,
203.208.40.1
Connecting to redirector.gvt1.com (redirector.gvt1.com)|2401:3800:4002:807::1001
|:443... connected.
Unable to establish SSL connection.
SHA-256 Checksum mismatch, aborting installation
dpkg: error processing archive /var/cache/apt/archives/android-studio-2024.1.1_2
024.1.1.12~jammy+0_amd64.deb (--unpack):
new android-studio-2024.1.1 package pre-installation script subprocess returned
error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/android-studio-2024.1.1_2024.1.1.12~jammy+0_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
----------------
等一会,再运行,就正常了。
等多久,要看自己的网络实况,天知道?
$ 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:
android-studio-2024.1.1
Suggested packages:
lib32z1
The following NEW packages will be installed:
android-studio-2024.1.1
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
1 not fully installed or removed.
Need to get 0 B/5,716 B of archives.
After this operation, 28.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 298334 files and directories currently installed.)
Preparing to unpack .../android-studio-2024.1.1_2024.1.1.12~jammy+0_amd64.deb ..
.
--2024-07-20 07:12:41-- https://redirector.gvt1.com/edgedl/android/studio/ide-z
ips/2024.1.1.12/android-studio-2024.1.1.12-linux.tar.gz
Resolving redirector.gvt1.com (redirector.gvt1.com)... 2401:3800:4002:807::1001,
120.253.250.225
Connecting to redirector.gvt1.com (redirector.gvt1.com)|2401:3800:4002:807::1001
|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://r1---sn-ni57dn7s.gvt1-cn.com/edgedl/android/studio/ide-zips/20
24.1.1.12/android-studio-2024.1.1.12-linux.tar.gz?cms_redirect=yes&mh=0q&mip=240
9:895a:f121:1438:d7b9:89bd:c65e:a652&mm=28&mn=sn-ni57dn7s&ms=nvh&mt=1721430255&m
v=m&mvi=1&pl=33&rmhost=r15---sn-ni57dn7s.gvt1-cn.com&shardbypass=sd [following]
--2024-07-20 07:12:41-- https://r1---sn-ni57dn7s.gvt1-cn.com/edgedl/android/stu
dio/ide-zips/2024.1.1.12/android-studio-2024.1.1.12-linux.tar.gz?cms_redirect=ye
s&mh=0q&mip=2409:895a:f121:1438:d7b9:89bd:c65e:a652&mm=28&mn=sn-ni57dn7s&ms=nvh&
mt=1721430255&mv=m&mvi=1&pl=33&rmhost=r15---sn-ni57dn7s.gvt1-cn.com&shardbypass=
sd
Resolving r1---sn-ni57dn7s.gvt1-cn.com (r1---sn-ni57dn7s.gvt1-cn.com)... 2401:38
00:8001:b::13, 203.208.57.147
Connecting to r1---sn-ni57dn7s.gvt1-cn.com (r1---sn-ni57dn7s.gvt1-cn.com)|2401:3
800:8001:b::13|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1236625834 (1.2G) [application/gzip]
Saving to: ‘/opt/android-studio-ide.tar.gz’roid-studio-ide.tar 0%[ ] 8.78M 116KB/s eta 2h 46m