我只是尝试更新在 debian 7.8 上运行的开发数据库。不幸的是,它现在给了我以下错误:
...
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/wheezy/Release Unable to find expected entry 'utilities-1.4/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
那么我的/etc/apt/sources.list.d/mysql.list
文件内容是这样的:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out entries below, but any other modifications may be lost.
# Use command 'dpkg-reconfigure mysql-apt-config' as root for modifications.
deb http://repo.mysql.com/apt/debian/ wheezy mysql-apt-config
deb http://repo.mysql.com/apt/debian/ wheezy mysql-5.6
# deb http://repo.mysql.com/apt/debian/ wheezy connector-python-2.0
deb http://repo.mysql.com/apt/debian/ wheezy utilities-1.4
deb-src http://repo.mysql.com/apt/debian/ wheezy mysql-5.6
有人有一些如何解决这个问题的提示吗?
答案1
完全感谢@wurtel 在评论中给我答案。
解决方案是运行dpkg-reconfigure mysql-apt-config
它会弹出一个菜单。选择实用程序,然后确定,如下所示。
然后选择mysql-utilities-x,然后就ok了。
然后在下一个菜单上。选择应用。
然后运行sudo apt-get update && sudo apt-get dist-upgrade
,一切正常。