升级到 Ubuntu 17.10 需要 fglrx!

升级到 Ubuntu 17.10 需要 fglrx!

我尝试将 Ubuntu 16.04 升级到 17.10,但当我在终端中输入 sudo apt update && sudo apt dist-upgrade 来启动升级过程时,我收到消息“需要重新安装软件包 fglrx,但我找不到它的存档”。我很困惑。我以为 fglrx 已经过时了。为什么新版本的 Ubuntu 要求它?任何帮助都非常感谢!

更新- 我尝试安装 amdgpu-pro,因为我相信 Ubuntu 16.04 不使用 fglrx。但在这里我也收到同样的消息。为什么 amdgpu-pro 需要 fglrx?我以为它取代了它?

也许我的软件源确实有问题。请问我该如何解决这个问题?

进一步更新。Karel,谢谢你的建议。 sudo apt remove --purge fglrx fglrx-amdcccle* fglrx-dev* fglrx-updates*返回:

Reading package lists... Done    
Building dependency tree       
Reading state information... Done    
E: The package fglrx needs to be reinstalled, but I can't find an archive for it.    

奇怪的是,清除 fglrx 的命令似乎要我重新安装它!

/etc/apt/sources.list 返回:

bash: /etc/apt/sources.list: Permission denied

如果我无论如何继续复制您建议的源文件并运行,apt-get update我会得到:

Reading package lists... Done  
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)  
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)  
E: Unable to lock directory /var/lib/apt/lists/  
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)  
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)  

如有任何帮助我将不胜感激!

第三次更新。Karel,谢谢你的帮助。cat /etc/apt/sources.list 返回的内容与模型类似。我无法发布整个输出,因为我收到一条错误消息,除非我的声誉达到或超过 10,否则我无法发布超过 8 个链接。但不同之处似乎是:(1) 虽然模型引用了美国档案,但我的所有引用都是 GB 档案(这是我应该期望的;(2) 开头和结尾都引用了 Raring Ringtail,这让我很困惑(它们重要吗?);(3) 模型中注释的 deb-src 行在我的版本中是有效的。我在下面发布了相关摘录,并感谢您能提供的任何进一步建议。

# deb cdrom:[Ubuntu 13.04咆哮的环尾猫- 发布 amd64 (20130424)]/raring 主要受限

deb-源文件http://gb.archive.ubuntu.com/ubuntu/xenial-updates 主要受限
deb-srchttp://gb.archive.ubuntu.com/ubuntu/xenial-updates universe
deb-srchttp://gb.archive.ubuntu.com/ubuntu/xenial-updates 多元宇宙
debhttp://archive.canonical.com/ubunturaring 合作伙伴
deb-srchttp://archive.canonical.com/ubuntu渴望的合作伙伴

第四次更新。我尝试用您指出的模型文件替换我的 apt.sources.list 文件,用 gb.archive 替换 us.archive,以此来解决问题。但我认为这没有奏效。sudo apt-update 返回:

W:目录 /var/lib/apt/lists/partial 的 chmod 0700 失败 - SetupAPTPartialDirectory(1:操作不允许)
E:无法打开锁定文件 /var/lib/apt/lists/lock - open(13:权限被拒绝)
E:无法锁定目录 /var/lib/apt/lists/
W:取消链接文件 /var/cache/apt/pkgcache.bin 时出现问题 - RemoveCaches(13:权限被拒绝)
W:取消链接文件 /var/cache/apt/srcpkgcache.bin 时出现问题 - RemoveCaches(13:权限被拒绝)
W:目标包(partner/binary-amd64/Packages)在 /etc/apt/sources.list:49 和 /etc/apt/sources.list.d/xenial-partner.list:4 中配置多次
W:目标包(partner/binary-i386/Packages)在 /etc/apt/sources.list:49 中配置多次/etc/apt/sources.list.d/xenial-partner.list:4
W:目标包(partner/binary-all/Packages)在 /etc/apt/sources.list:49 和 /etc/apt/sources.list.d/xenial-partner.list:4
W 中配置了多次,目标翻译(partner/i18n/Translation-en_US)在 /etc/apt/sources.list:49 和 /etc/apt/sources.list.d/xenial-partner.list:4
W 中配置了多次,目标翻译(partner/i18n/Translation-en)在 /etc/apt/sources.list:49 和 /etc/apt/sources.list.d/xenial-partner.list:4 W 中配置了多次,
目标 DEP-11(partner/dep11/Components-amd64.yml)在 /etc/apt/sources.list:49 和/etc/apt/sources.list.d/xenial-partner.list:4
W: 目标 DEP-11-icons(partner/dep11/icons-64x64.tar)在 /etc/apt/sources.list:49 和 /etc/apt/sources.list.d/xenial-partner.list:4 中多次配置

....sudo apt-upgrade最后返回相同的内容,

E: 需要重新安装软件包 fglrx,但我找不到它的存档

这些新信息是否可以帮助任何人建议我下一步该怎么做?

答案1

The package fglrx needs to be reinstalled, but I can't find an archive for itfglrx 软件包在 Ubuntu 16.04 及更高版本的默认存储库中不可用,因此请卸载所有 fglrx 软件包以消除错误消息。打开终端并输入:

sudo apt-get purge fglrx fglrx-amdcccle* fglrx-dev* fglrx-updates*  

然后将您的/etc/apt/sources.list文件与此进行比较示例 Ubuntu 16.04 sources.list 文件. 运行命令cat /etc/apt/sources.list读取 sources.list 文件而不进行更改。

要修复最后的错误,请按照以下答案中的说明进行操作我该如何修复 apt 错误“W:目标包…被多次配置”?

相关内容