如何安装ubuntu-keyring

时间:2015-06-02 08:55:43

标签: terminal install sudo

我做了一些非常愚蠢的事情

sudo apt-get remove ubuntu-keyring

我如何安装ubuntu密钥环?

2 个答案:

答案 0 :(得分:1)

假设你没有像我一样删除几乎整个系统,你仍然拥有ubuntu-keyring的依赖关系,这使得更容易

因此,您首先要做的是使用apt

继续下载ubuntu-keyring:

Private Sub CommandButton3_Click() Dim LSearchRow As Integer Dim LCopyToRow As Integer On Error GoTo Err_Execute 'Start search in row 4 LSearchRow = 4 'Start copying data to row 2 in Sheet2 (row counter variable) LCopyToRow = 2 While Len(Range("A" & LSearchRow).Value) > 0 'If value in column E = "Mail Box", copy entire row to Sheet2 If Sheets("Sheet1").Range("E" & LSearchRow).Value = "Mail Box" Then 'Select row in Sheet1 to copy Rows(LSearchRow).EntireRow.Copy Sheets("Sheet2").Rows(LCopyToRow) 'Move counter to next row LCopyToRow = LCopyToRow + 1 End If LSearchRow = LSearchRow + 1 Wend MsgBox "All matching data has been copied." Exit Sub Err_Execute: MsgBox "An error occurred." End Sub

它为您提供.deb文件中的ubuntu-keyring包。 接下来继续尘埃dpkg:

sudo apt download ubuntu-keyring

您现在不仅重新安装了ubuntu-keyring,而且我也相信这可以让您使用sudo dpkg -i <ubuntu keyring here>。希望这有帮助!

答案 1 :(得分:0)

老问题,但是:D我遇到了类似的问题。

可能会帮助您查找系统版本的信息

    cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"

和内核架构

    dpkg --print-architecture
armhf

接下来,您应该从https://packages.ubuntu.com/trusty/ubuntu-keyring下载ubuntu-keyring,并从https://packages.debian.org/search?searchon=names&keywords=apt下载apt。要下载正确的apt版本,您需要系统版本(我的设备上的wheezy)和内核体系结构(我的设备上的armhf

现在您需要将软件包安装在目标设备上,例如:

    dpkg -i ubuntu-keyring_someVersion.deb
...
    dpkg -i apt_someVersion.deb
...

如果缺少其他lib或软件包,只需下载并同样安装。