当我尝试使用以下命令编辑我的 sources.list 文件时:
$ gksu gedit /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
它要求输入管理密码,当我输入密码时,它说不正确并重试。怎么办?我是 Linux 和 Ubuntu 的新手。
这些是我尝试了 Internet 上提到的几个修复程序后仍然存在的签名错误
W: GPG error: http://deb.opera.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 517590D9A8492E35
W: GPG error: http://archive.canonical.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
W: GPG error: http://extras.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192
W: GPG error: http://linux.dropbox.com trusty Release: The following signatures couldn't be verified …
Run Code Online (Sandbox Code Playgroud) 我做了一个升级的Ubuntu上WSL从18.10至19.04用do-release-upgrade
。
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="19.04 (Disco Dingo)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 19.04"
VERSION_ID="19.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=disco
UBUNTU_CODENAME=disco
Run Code Online (Sandbox Code Playgroud)
但是现在我注意到 repositories/sources.list 仍然指向 cosmic。
$ grep -li cosmic /etc/apt/sources.list /etc/apt/sources.list* /etc/apt/sources.list*/*
/etc/apt/sources.list
/etc/apt/sources.list
grep: /etc/apt/sources.list.d: Is a directory
/etc/apt/sources.list.distUpgrade
/etc/apt/sources.list.save
$ grep -li disco /etc/apt/sources.list /etc/apt/sources.list* /etc/apt/sources.list*/*
grep: /etc/apt/sources.list.d: Is a directory
Run Code Online (Sandbox Code Playgroud)
所以我想升级过程中一定有一些我没有注意到的失败。
如何找出任何升级错误并修复它们?
在哪里可以找到 19.04 的源列表?
我一直在尝试gnome-tweaks
在新的 Ubuntu 20.04.3 LTS 安装上进行安装,但没有成功。
运行sudo apt install gnome-tweaks
给出以下输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gnome-tweaks : …
Run Code Online (Sandbox Code Playgroud) 我想从不同服务器上的当前状态升级到特定内核版本(5.4.0-81-generic)。我想使用 apt 软件包管理器来更新内核。
Ubuntu 18.04.3 LTS 4.15.0-55-generic
Ubuntu 18.04 LTS 4.15.0-51-generic
Ubuntu 18.04 LTS 4.15.0-20-generic
Ubuntu 18.04 LTS 4.15.0-106-generic
Ubuntu 18.04 LTS 4.15.0-133-generic
Ubuntu 18.04 LTS 4.15.0-140-generic
Ubuntu 18.04 LTS 4.15.0-107-generic
Ubuntu 18.04.4 LTS 5.4.0-74-generic
Ubuntu 18.04.4 LTS 5.4.0-77-generic
ls /boot
config-4.15.0-76-generic grub initrd.img-5.4.0-70-generic System.map-5.4.0-70-generic vmlinuz-5.4.0-70-generic
config-5.4.0-70-generic initrd.img-4.15.0-76-generic System.map-4.15.0-76-generic vmlinuz-4.15.0-76-generic
uname -r
5.4.0-70-generic
Run Code Online (Sandbox Code Playgroud)
当尝试搜索内核版本时,我得到以下 2 张图像,选择使用哪一张。
apt-cache search linux-image | grep 5.4.0-81-generic
linux-image-5.4.0-81-generic - Signed kernel image generic
linux-image-unsigned-5.4.0-81-generic - Linux kernel image for version 5.4.0 on 64 bit x86 …
Run Code Online (Sandbox Code Playgroud) 我正在尝试做
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
W: Failed to fetch http://ftp.udc.es/ubuntu/dists/trusty/Release Unable to find expected entry 'main/binary-x8-64/Packages' in Release file (Wrong sources.list entry or malformed file)
Run Code Online (Sandbox Code Playgroud)
我已经尝试重置 /etc/apt/sources.list 就像这里建议的那样:
并且还尝试选择另一台服务器来下载更新:Ubuntu 12.04 上的“sudo apt-get update”错误
但我一直收到同样该死的错误信息。有任何想法吗?
正如评论中所问,做:
$ grep -R ftp.udc.es /etc/apt/sources.list*
/etc/apt/sources.list:deb http://ftp.udc.es/ubuntu/ trusty main universe
/etc/apt/sources.list.save:deb http://ftp.udc.es/ubuntu/ trusty main
$ cat sources.list
## See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
deb http://ftp.udc.es/ubuntu/ trusty main universe
# CDROMs …
Run Code Online (Sandbox Code Playgroud) 我目前使用的是 Ubuntu 18.10 并尝试通过以下方式升级到 19.04
$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool [1.214 kB]
Err Upgrade tool signature
404 Not Found [IP: 91.189.91.23 80]
Fetched 1.214 kB in 0s (0 B/s)
WARNING:root:file 'disco-updates.tar.gz.gpg' missing
Failed to fetch
Fetching the upgrade failed. There may be a network problem.
Run Code Online (Sandbox Code Playgroud)
网络连接很好,我没有任何中断。我还没有使用 Ubuntu 的经验,所以我想我先问一下,而不是调整文件。
编辑:我不知道为什么我应该使用-d
,但忽略了升级工作。
我正在尝试使用安装 xelatex
sudo apt install texlive-xetex
Run Code Online (Sandbox Code Playgroud)
但我收到这些错误。
Err:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 texlive-latex-base all 2017.20180305-1
403 Forbidden [IP: 103.123.234.254 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/t/texlive-base/texlive-latex-base_2017.20180305-1_all.deb 403 Forbidden [IP: 103.123.234.254 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Run Code Online (Sandbox Code Playgroud)
我已经尝试过运行apt-get update
并使用--fix-missing
标志,但它没有解决问题。
有人可以告诉我该怎么做吗?我是一个 ubuntu 用户新手。
谢谢!
我有一个运行 Ubuntu Server 16.04 的 Digital Ocean Droplet。我尝试运行 a do-release-upgrade
(在强制apt update
和之后apt upgrade
),但它很快就停止了:
Reading cache
Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Hit http://mirrors.digitalocean.com/ubuntu xenial InRelease
Get:1 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security InRelease [7476 B]
Get:2 https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates InRelease [7475 B]
Get:3 http://mirrors.digitalocean.com/ubuntu xenial-updates InRelease [109 kB]
Get:4 http://mirrors.digitalocean.com/ubuntu xenial-backports InRelease [107 kB]
Get:5 http://mirrors.digitalocean.com/ubuntu xenial-security InRelease [109 kB]
Get:6 http://mirrors.digitalocean.com/ubuntu xenial-updates/main amd64 Packages [2048 kB]
Get:7 http://mirrors.digitalocean.com/ubuntu …
Run Code Online (Sandbox Code Playgroud) steam-installer
尝试使用 Ubuntu 软件进行安装,得到了这个非常有用的错误:
然后我尝试了命令行:
\n$ sudo apt install steam-installer\n\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n steam-installer : Depends: steam (= 1:1.0.0.61-2ubuntu3)\nE: Unable to correct problems, you have held broken packages.\n
Run Code Online (Sandbox Code Playgroud)\n所以steam-installer依赖steam,无法解决!什么?Ubuntu Steam 软件包是否已损坏? …
apt ×4
upgrade ×4
19.04 ×2
updates ×2
14.04 ×1
16.04 ×1
18.04 ×1
18.10 ×1
dependencies ×1
gksu ×1
gnome ×1
gnome-shell ×1
gnome-tweaks ×1
gnupg ×1
kernel ×1
latex ×1
pdf ×1
permissions ×1
ppa ×1
signature ×1
steam ×1
texlive ×1
text-editor ×1