解决Unable to find expected entry 'main/binary-i386/Packages'in Release file问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zhuyunier/article/details/86493277

在Ubuntu虚拟机执行sudo apt-get update命令报错如下错误:

Failed to fetch http://zeroc.com/download/Ice/3.7/ubuntu16.04/dists/stable Unable to find expected entry 'main/binary-i386/Packages'in Release file (Wrong sources.list entry or malformed file)

因为错误中显示是在更新i386架构的包时出错,所以采用以下解决方法:

1、查看系统支持的其他架构

dpkg --print-foreign-architectures

根据打印显示为i386表示系统还支持i386,所以需要移除;
2、移除i386架构

dpkg --remove-architecture i386

在执行移除命令时候报错:

dpkg: error: cannot remove architecture 'i386' currently in use by the database

所以需要先删除i386结构的库,再执行移除命令

apt-get remove .*:i386
dpkg --remove-architecture i386

3、移除后再执行sudo apt-get update命令便可以更新了

猜你喜欢

转载自blog.csdn.net/zhuyunier/article/details/86493277