我太笨了,但决定使用 Ubuntu,所以我花钱请了专业人士为我安装它(双引导 11.10 和 Win7)。当我回到家时,我从软件中心得到了很多东西。Skype 没有下载按钮,所以我用 google 搜索了一下,Ubuntu 帮助告诉我这样做:
sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
Run Code Online (Sandbox Code Playgroud)
然后是这个:
sudo apt-get update && sudo apt-get install skype
Run Code Online (Sandbox Code Playgroud)
终端告诉我“这可能有害......”但我认为这是 Ubuntu 语言,意思是“你确定吗?”
现在电脑静音了。
在修复包目录之前无法安装或删除项目,因此我想修复它但包操作失败。
“sudo aptitude -f install”-> 未找到命令
Synaptic 包管理器告诉我有两个损坏的包:libc6 和 libc6-dev
所以我这样做:
sudo apt-get update && sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
它告诉我这样做:
sudo apt-get -f install
Run Code Online (Sandbox Code Playgroud)
最终结果是这样的:
Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.
Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17.
Preconfiguring packages ... …Run Code Online (Sandbox Code Playgroud) 我想在 Ubuntu 17.10 上安装SafeEyes。按照官方网站的说明进行操作。
首先我执行sudo add-apt-repository ppa:slgobinath/safeeyes,然后sudo apt update。其中的输出是:Hit:9 http://ppa.launchpad.net/slgobinath/safeeyes/ubuntu artful InRelease.
但是,如果我随后尝试,则会sudo apt install safeeyes出现Unable to locate package错误。
过去我在使用外部 ppa 时从未遇到过任何问题(尽管我只做过几次)而且我对apt实际工作方式不太熟悉,因此以下只是猜测。在谷歌搜索了一下之后,我检查/var/lib/apt/lists/并注意到只有一个文件对应于 safeeyes: ppa.launchpad.net_slgobinath_safeeyes_ubuntu_dists_artful_InRelease,而其他存储库也有一些文件*_binary-amd64_Packages. 我用 grep 在 safeeyes 文件中搜索了“Package:”,但一无所获。我想这是问题吗?
是否add-apt-repository未能添加正确的来源?我尝试删除并重新添加 ppa,但没有成功。我还检查了 safeeyes github 页面上的问题选项卡,但没有其他投诉,所以我想问题出在我身上。
这是我得到的结果 sudo apt-get update
W: The repository 'http://ppa.launchpad.net/t-tujikawa/ppa/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ppa.launchpad.net/t-tujikawa/ppa/ubuntu/dists/xenial/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我安装了 64 位 19.04,但如果我尝试安装 32 位软件包(例如 wine32),则会收到以下消息:
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:
Run Code Online (Sandbox Code Playgroud)
包含 i386 软件包列表。如果我尝试安装它们,我经常会得到一个更长的我缺少的 i386 软件包列表。我可以遍历并递归地继续尝试安装这些 i386 软件包,但必须有其他方法。
我在网上看到的大多数建议都是运行sudo dpkg --add-architecture i386,但这没有效果。我不太确定我做错了什么。
这是我的内容/etc/apt/sources.list,如果我在这里遗漏了什么:
deb http://archive.ubuntu.com/ubuntu disco …Run Code Online (Sandbox Code Playgroud) 伙计们。我想在我的 Ubuntu 18.04 lts 上安装 virtualbox,但是当我运行sudo apt update时,我得到: E: 列表文件 /etc/apt/sources.list (组件) 中格式错误的条目 53 E: 源列表无法被阅读。
这是该列表:
# deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://lt.archive.ubuntu.com/ubuntu/ bionic main restricted
# deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://lt.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
# deb-src http://lt.archive.ubuntu.com/ubuntu/ …Run Code Online (Sandbox Code Playgroud) 我有一个包含在文件夹中的特定包的安装命令
这是一个用于加密和安全的包
有人可以为我解释到底是什么'pwd'意思吗?
./install_***.sh `pwd`
Run Code Online (Sandbox Code Playgroud)
我在猜测密码的简写?
请指教...
我想知道是否有类似于https://www.npmjs.com/ 的apt 软件包网站,我可以在其中阅读所有可用软件包的说明?
我阅读了一些如何安装某些软件的手册,并且在那里编写了可以运行的手册sudo apt install something,但我不知道something需要什么。我怎样才能得到这些信息?
当我运行时,df -h我看到我有几个/snap名称和大小相似的条目。我已经编辑并重新排列了输出,以便相似的名称都出现在一起(见下文)。
我猜我应该能够删除(例如)早期的 Gimp: 实例/snap/gimp/367。这篇文章告诉我如何减少一个命名的snap 包,但我还没有找到如何只删除两个同名包中的一个。
另外,core...我真正需要哪些软件包?
提前感谢您对此的任何帮助。
/snap/audacity/857 /dev/loop17 188M 188M 0 100%
/snap/chromium-ffmpeg/17 /dev/loop11 33M 33M 0 100%
/snap/core/11167 /dev/loop10 100M 100M 0 100%
/snap/core/11187 /dev/loop19 100M 100M 0 100%
/snap/core18/2066 /dev/loop13 56M 56M 0 100%
/snap/core18/2074 /dev/loop6 56M 56M 0 100%
/snap/core20/1026 /dev/loop23 62M 62M 0 100%
/snap/core20/975 /dev/loop14 62M 62M 0 100%
/snap/gimp/367 /dev/loop22 269M 269M 0 100%
/snap/gimp/372 /dev/loop21 277M 277M 0 100% …Run Code Online (Sandbox Code Playgroud) 这是我输入的安装命令。为什么这不起作用?
$ sudo apt install bitwig-studio-3.3.11.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bitwig-studio-3.3.11.deb
E: Couldn't find any package by glob 'bitwig-studio-3.3.11.deb'
Run Code Online (Sandbox Code Playgroud)
$ sudo apt install bitwig-studio-3.3.11.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package bitwig-studio-3.3.11.deb
E: Couldn't find any package by glob 'bitwig-studio-3.3.11.deb'
Run Code Online (Sandbox Code Playgroud)
$ sudo apt install /bitwig-studio-3.3.11.deb
Reading package lists... Done
E: Unsupported file /bitwig-studio-3.3.11.deb given on commandline'
Run Code Online (Sandbox Code Playgroud) 我经常被推荐通过 CLI(即通过 sudo dpkg -i 文件名)安装 .deb 文件,而不是简单地双击 .deb 文件。我不明白为什么这么推荐。另外,我很想知道这两种安装模式有什么区别。
apt ×4
ppa ×2
16.04 ×1
19.04 ×1
32-bit ×1
command-line ×1
dpkg ×1
encryption ×1
installation ×1
repository ×1
scripts ×1
security ×1
skype ×1
snap ×1
sudo ×1
updates ×1
virtualbox ×1