apt --fix-broken install:网络不稳定,导致的错误

$ 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

  • 3
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值