报错信息

命中:1 http://packages.deepin.com/deepin panda InRelease
命中:2 http://linux.teamviewer.com/deb stable InRelease
忽略:3 http://update.send-anywhere.com/linux/debian stable InRelease
获取:4 http://update.send-anywhere.com/linux/debian stable Release [2,392 B]
获取:5 http://update.send-anywhere.com/linux/debian stable Release.gpg [490 B]
获取:7 http://update.send-anywhere.com/linux/debian stable/main amd64 Packages [496 B]
获取:6 http://219.238.7.73/files/112100000261AD1F/debian.cn99.com/debian stable/main i386 Packages [499 B]
错误:6 http://219.238.7.73/files/112100000261AD1F/debian.cn99.com/debian stable/main i386 Packages
文件尺寸不符(6568728 != 499)。您使用的镜像正在同步中? [IP: 219.238.7.73 80]
Hashes of expected file:
- Filesize:499 [weak]
- SHA256:65b2922437745feedb69fb9b4e2e54a96b7e8da08c55efa4b7779ea43a53d7ae
- SHA1:ae261f282f20cc3cf9c946ef329d7431fa6716f1 [weak]
- MD5Sum:cc9d77dd377a41a714e37e09ae26e57c [weak]
Release file created at: Thu, 19 Jul 2018 10:34:47 +0000
已下载 2,882 B,耗时 3秒 (957 B/s)
正在读取软件包列表... 完成
E: 无法下载 http://219.238.7.73/files/112100 ... y-i386/Packages.bz2 文件尺寸不符(6568728 != 499)。您使用的镜像正在同步中? [IP: 219.238.7.73 80]
Hashes of expected file:
- Filesize:499 [weak]
- SHA256:65b2922437745feedb69fb9b4e2e54a96b7e8da08c55efa4b7779ea43a53d7ae
- SHA1:ae261f282f20cc3cf9c946ef329d7431fa6716f1 [weak]
- MD5Sum:cc9d77dd377a41a714e37e09ae26e57c [weak]
Release file created at: Thu, 19 Jul 2018 10:34:47 +0000
E: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。

问题分析

报错是因为需要安装某个依赖库,但是在安装过程中找不到该依赖,原因位置。可尝试解决方法:

  • 代理
  • 修改软件源

问题修复

1)备份源文件:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

2)查看版本信息

如是Linux Mint等Ubuntu衍生版,执行:

cat /etc/upstream-release/lsb-release

如是Ubuntu直接执行:

lsb_release -c

确认当前系统代号(Codename)为:bionic。如是其他版本,请使用其他版本的软件源,其中:

Ubuntu 12.04 (LTS)代号为precise。
Ubuntu 14.04 (LTS)代号为trusty。
Ubuntu 15.04 代号为vivid。
Ubuntu 15.10 代号为wily。
Ubuntu 16.04 (LTS)代号为xenial。

3)修改sources.list:

修改/etc/apt/sources.list为以下内容:

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

4)检查更新

sudo apt-get update

5)重新安装软件

sudo apt-get install XXX

参考资料

https://blog.csdn.net/zhangjiahao14/article/details/80554616

https://bbs.deepin.org/forum.php?mod=viewthread&tid=167810

apt-get 安装软件时出现:“文件尺寸不符” 问题的更多相关文章

  1. 在ubuntu中我们使用sudo apt-get install 或者dpkg -i *.deb安装软件时,常常提示“有未能满足的依赖关系“,解决方法

    很早之前在ubuntu安装软件时遇到的问题,今天打开ubuntu看到了,总结如下: 在ubuntu中我们使用sudo apt-get install 或者dpkg -i *.deb安装软件常常提示“有 ...

  2. 【转】ubuntu 11.04使用apt-get安装软件时一直提示E:unable to locate package

    问题: VMware虚拟机安装了ubuntu 11.04,在使用apt-get安装软件时一直提示E:Unable to locate package. 百度了原因,说是要更新源,使用命令:sudo a ...

  3. Ubuntu 安装软件时显示:无法获得锁 /var/lib/dpkg/lock -open(资源暂时不可用)

    出错状况:在用 sudo apt-get install 安装软件时,结果终端提示: 无法获得锁 /var/lib/dpkg/lock -open(资源暂时不可用) 无法锁定管理目录(var/lib/ ...

  4. Linux安装软件时90%的人会遇到这个报错,如何解决?

    提示 Could not get lock /var/lib/dpkg/lock 报错? 有些小伙伴在使用 apt 包管理器更新或安装软件时,可能会遇到过诸如以下的错误提示: E: Could not ...

  5. yum命令安装软件时,出现--centos 7 安装apache 出现 Could not resolve host: mirrorlist.centos.org; 未知的错误"--CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决

    CentOS网络设置 couldn't resolve host 'mirrorlist.centos.org问题解决 今天在虚拟机上安装完CentOS6.5之后,首次使用时yum命令安装软件时,出现 ...

  6. apt-get install安装软件时出现依赖错误解决方式

    在使用apt-get install安装软件时,常常会遇到如上图所看到的错误.该错误的意思为缺少依赖软件.解决方式为: aptitude install golang-go

  7. CentOS yum安装软件时保留安装包及依赖包或者自动下载安装包及相关依赖包

    CentOS上安装某个软件一般都有很多相关的依赖包,当然,这也与我们安装时software selection步骤中选择的版本有关系,我们服务器在安装CentOS时一般选择Basic Web Serv ...

  8. linux安装软件时/usr/lib/python2.7/site-packages/urlgrabber/grabber.py文件异常

    linux安装软件时,经常出现以下异常信息 Traceback (most recent call last): File , in <module> main() File , in m ...

  9. 借鉴seisman安装软件时的文件放置选择

    对于大型的软件包的安装来说: 当下载成功一个软件的压缩包后: tar -xvf xxxx.tgz ./configure --prefix=/opt/xxxx make sudo make insta ...

随机推荐

  1. spring中bean初始化执行顺序

    常用的javabean的初始化方法为,构造方法,@PostConstruct,以及实现InitializingBean接口的afterPropertiesSet方法. note在构造方法执行时候,sp ...

  2. 深入了解Netty【一】BIO、NIO、AIO简单介绍

    引言 在Java中提供了三种IO模型:BIO.NIO.AIO,模型的选择决定了程序通信的性能. 1.1.使用场景 BIO BIO适用于连接数比较小的应用,这种IO模型对服务器资源要求比较高. NIO ...

  3. 文本三剑客之grep的用法

    第1章         正则表达式 1.1    正则表达式的介绍               正则是用来过滤文件内容               为处理大量文本|字符串而定义的一套规则和方法.    ...

  4. codewars sum of pairs

    Sum of Pairs Given a list of integers and a single sum value, return the first two values (parse fro ...

  5. Qt绘图学习(1)

    paintEvent()被调用的时机;1.当窗口第一次被show()的时候,Qt程序会自动产生一个绘图事件,调用绘图事件:2.重新调整窗口部件大小的时候,系统也会产生一个绘制事件.3.当窗口部件被其他 ...

  6. leetcode刷题-71简化路径

    题目 以 Unix 风格给出一个文件的绝对路径,你需要简化它.或者换句话说,将其转换为规范路径. 在 Unix 风格的文件系统中,一个点(.)表示当前目录本身:此外,两个点 (..) 表示将目录切换到 ...

  7. Repeater每行绑定事件代码

    if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { Repea ...

  8. python:列表生成式和三元表达式、匿名函数

    一.列表生成式 1.列表生成式就是python内置的一种用来生成list的生成式. 比如下面这个例子: l=[] for i in range(10) list.append(i) 生成一个列表要用循 ...

  9. lua数据结构之table的内部实现

    一.table结构 1.Table结构体 首先了解一下table结构的组成结构,table是存放在GCObject里的.结构如下:   typedef struct Table {   CommonH ...

  10. Django 多页面间参数传递用session方法(Django七)

    由一个页面跳转至另一个页面可以有render中携带几个参数,如下:照上例便在跳转到homepage页面后使用传递的四个参数了 但问题是如何在由homepage跳转到其他页面时仍可以使用这四个参数呢?我 ...