我使用的是 Google Chrome 48.0 32 位。今天当我启动谷歌浏览器时,我收到了这条消息:
This computer will soon stop receiving Google Chrome updates because
this Linux system will no longer be supported
Run Code Online (Sandbox Code Playgroud)
我认为 Ubuntu 14.04 支持五年,这里到底发生了什么?
在 64 位 Ubuntu 上,我从更新管理器收到错误消息apt-get update
:
Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release
Unable to find expected entry 'main/binary-i386/Packages' in Release file
(Wrong sources.list entry or malformed file)
Some index files failed to download.
They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud) Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://dl.google.com/linux/chrome/deb stable InRelease' doesn't support architecture 'i386'
Run Code Online (Sandbox Code Playgroud)
这是我表演时得到的
sudo apt-get update.
Run Code Online (Sandbox Code Playgroud)
我在这个网站上找到了一个解决方案(跳过配置文件“main/binary-i386/Packages”的获取,因为存储库“xxx”不支持架构“i386”)
并执行
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
Run Code Online (Sandbox Code Playgroud)
但回来了
No command 'deb' found, did you mean:
Command 'dex' from package 'dex' (universe)
Command 'debc' from package 'devscripts' (main)
Command 'deb3' from package 'quilt' (main)
Command 'dab' from package 'bsdgames' (universe)
Command 'derb' from package 'icu-devtools' (main)
Command 'debi' from package 'devscripts' (main)
Command 'xdeb' from package 'xdeb' (universe)
Command 'dwb' …
Run Code Online (Sandbox Code Playgroud) 运行sudo apt update
,我收到此错误:
W: Failed to fetch http://dl.google.com/linux/earth/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
Run Code Online (Sandbox Code Playgroud)
我该如何解决?我正在运行 Ubuntu 14.04 64 位。
更新:我按照我的回答进行了操作,但今天返回了错误。该文件/etc/apt/sources.list.d/google-earth.list
恢复原状,我刚刚注意到它有以下两行:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
Run Code Online (Sandbox Code Playgroud)
所以看起来文件被覆盖了,这意味着当前的答案不是永久性的修复,也不是重复的。
更新 2:我决定卸载 Google 地球并删除其 .list 文件。反正我从来不用它。如果有人遇到同样的问题,请告诉我,我会帮助您。
更新 3:muru 在评论中提到有一个 cron 文件/etc/cron.daily/google-earth
. 我通读了它,发现它将它附加到 .list 文件中:
deb http://dl.google.com/linux/earth/deb/ stable main …
Run Code Online (Sandbox Code Playgroud) 我目前使用的是net core 3.1,想升级到5.0。我尝试按照 I nstall the .NET SDK or the .NET Runtime on Ubuntu 中的指南进行操作
\nwget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb\nsudo dpkg -i packages-microsoft-prod.deb\n\nsudo apt-get update; \\\n sudo apt-get install -y apt-transport-https && \\\n sudo apt-get update && \\\n sudo apt-get install -y dotnet-sdk-5.0\n
Run Code Online (Sandbox Code Playgroud)\n但看起来好像dotnet-sdk-5.0
没有找到
E: Unable to locate package dotnet-sdk-5.0\nE: Couldn\'t find any package by glob \'dotnet-sdk-5.0\'\nE: Couldn\'t find any package by regex \'dotnet-sdk-5.0\'\n
Run Code Online (Sandbox Code Playgroud)\n快速缓存转储仅返回旧版本:
\n\xe2\x9e\x9c ~ sudo apt-cache dump | grep …
Run Code Online (Sandbox Code Playgroud) 我正在尝试添加一个ppa
但出现错误Permission denied: '/etc/apt/sources.list.d/google-earth.list'
::
~$ sudo add-apt-repository ppa:otto-kesselgulasch/gimp-edge
[...]
Press [ENTER] to continue or ctrl-c to cancel adding it
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 168, in <module>
if not sp.add_source_from_shortcut(shortcut, options.enable_source):
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 768, in add_source_from_shortcut
self.set_modified_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 492, in set_modified_sourceslist
self.save_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 658, in save_sourceslist
self.sourceslist.save()
File "/usr/lib/python3/dist-packages/aptsources/sourceslist.py", line 413, in save
files[source.file] = open(source.file, "w")
PermissionError: [Errno 13] Permission denied: '/etc/apt/sources.list.d/google-earth.list'
Run Code Online (Sandbox Code Playgroud)
尝试以 root 身份运行而不是使用 sudo 时也会发生同样的情况:
~$ …
Run Code Online (Sandbox Code Playgroud) 需要将 Ubuntu 16.04.3 LTS 上的 Squid 3.5.12 升级到更新的补丁版本(Squid 3.5.23),我在这里找到了一些说明:https : //github.com/diladele/squid-ubuntu
准确输入前 3 个命令并从 apt-get 得到一条注释:“N:跳过获取配置文件‘main/binary-i386/Packages’作为存储库‘ http://ubuntu16.diladele.com/ubuntu xenial InRelease’ '不支持架构'i386'"
我没有像其他人那样有拼写错误和不存在的外国架构:
root@wprdsqd01:/# dpkg --print-foreign-architectures
i386
root@wprdsqd01:/# dpkg --print-architecture
amd64
root@wprdsqd01:/#
Run Code Online (Sandbox Code Playgroud)
这是否仅意味着存储库没有 i386(32 位)二进制文件?
谢谢
当我运行时sudo apt update
收到此消息:
N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'http://apt.postgresql.org/pub/repos/apt hirsute-pgdg InRelease' doesn't support architecture 'i386'
Run Code Online (Sandbox Code Playgroud)
这是输出dpkg --get-selections | awk '/i386/{print $1}'
gcc-11-base:i386
libc6:i386
libcap2:i386
libcom-err2:i386
libcrypt1:i386
libdbus-1-3:i386
libgamemode0:i386
libgamemodeauto0:i386
libgcc-s1:i386
libgcrypt20:i386
libgpg-error0:i386
libgssapi-krb5-2:i386
libidn2-0:i386
libk5crypto3:i386
libkeyutils1:i386
libkrb5-3:i386
libkrb5support0:i386
liblz4-1:i386
liblzma5:i386
libnsl2:i386
libnss-nis:i386
libnss-nisplus:i386
libssl1.1:i386
libsystemd0:i386
libtirpc3:i386
libunistring2:i386
libzstd1:i386
Run Code Online (Sandbox Code Playgroud)
检查了这个目录/etc/apt/sources.list.d
,但是 postgres 没有任何东西可以将其从这样的内容更改REPOCONFIG="deb http://dl.google.com/linux/earth/deb/ stable main"
为:REPOCONFIG="deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main"
输出rep -r postgresql /etc/apt --include=*.list
:
/etc/apt/sources.list.d/pgdg.list:deb http://apt.postgresql.org/pub/repos/apt hirsute-pgdg …
Run Code Online (Sandbox Code Playgroud) apt ×5
16.04 ×2
20.04 ×1
client ×1
dotnet ×1
dpkg ×1
google ×1
google-earth ×1
open-source ×1
permissions ×1
repository ×1
squid ×1
updates ×1
upgrade ×1