我安装了Ubuntu Tweak,但没有看到图标。
我应该在某处有一个 Tweak 图标吗?
Ubuntu 是否提供任何服务,自动将源代码编译为二进制 deb 包,以及用于多架构?
我已经创建了 python 包(使用Ubuntu Quickly)并想创建deb包。不幸的是,使用源 python 文件 (.py) 快速构建包,我不想包含源文件。Bazaar用于构建包的插件也存在同样的问题。
如何制作没有源代码的deb 包,在安装过程中编译 .py 文件,从而使系统中没有源文件?
package-management python bazaar quickly application-development
我升级到 12.04 并且 Deluge 崩溃了。我想删除它,然后再次添加它。如何删除洪水?
sudo apt-get remove --purge delugeRemoving deluge...,但当我搜索我的破折号时仍然可以找到它可能的重复:
如何使用 PPA 修复 404 错误?
安装了一些更新后,我重新启动了计算机。
几天后我想检查更新,因为“更新管理器”向我显示以下内容:“数据包信息已在过去 24 天前更新。” 并且出现了一个窗口。
下载包后的那个窗口说:
无法从存储库下载信息
检查您的互联网连接
细节:
W:GPG 错误:http ://ppa.launchpad.net oneiric 发布:以下签名无法验证,因为公钥不可用:NO_PUBKEY 5A9A06AEF9CB8DB0,W:无法获取 http://ppa.launchpad.net /jsevi83/unity/ubuntu/dists/oneiric/main/source/Sources 404 Not Found ,W:无法获取 http://ppa.launchpad.net/jsevi83/unity/ubuntu/dists/oneiric/main/binary-i386 /Packages 404 Not Found , W:Failed to fetch gzip:/var/lib/apt/lists/partial/ar.archive.ubuntu.com_ubuntu_dists_oneiric_universe_i18n_Translation-en 遇到一个没有 Package: header 的部分,E:Some index files failed to download . 它们已被忽略,或使用旧的代替。
但我的互联网连接工作正常。
我需要做什么?
除了在启动时更新 APT 包之外,我最近还为本地安装的 Snap 添加了 Snap 自动刷新(也在启动时),因为它们不会像其他那样自动更新。
但我想知道是否有优先顺序。
是在 Snap 之前/之后更新 APT 软件包更好,还是在 APT 软件包之前/之后更新 Snap 更好?
我个人猜测没有首选顺序,因为 Snap 是用它们自己的依赖项打包的,所以它根本不应该干扰 APT 包。
所以我正在寻找确认我的直觉是否正确。
编辑: 我找到的解决方案是将以下脚本添加到启动应用程序中,紧接在 APT 更新脚本之后。
gnome-terminal -- bash -c "echo 'sudo snap refresh';pkexec snap refresh;read line;exit 0;$SHELL"
编辑2:
上一个编辑将使两个更新过程同时运行。我后来发现的一种解决方案是将 tho 命令包装成一个命令。这样它将snap refresh在之后update-manager。
sh -c "/usr/bin/update-manager && sleep 1 && gnome-terminal -- sh -c \"echo 'sudo snap refresh';pkexec snap refresh;echo '';echo 'Press Enter to close the window...';read line;exit 0;$SHELL\""
# apt clean
# apt update
Hit:1 http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:2 http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:3 http://ca-central-1.ec2.ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
24 packages can be upgraded. Run 'apt list --upgradable' to see them.
# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation …Run Code Online (Sandbox Code Playgroud) 我通常添加这样的存储库:
add-apt-repository --no-update --yes "deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable"
Run Code Online (Sandbox Code Playgroud)
这工作正常,在设置 Ubuntu 机器时,我运行一个设置脚本,该脚本循环遍历存储库列表并使用该命令添加它们。
问题是,当遇到这种格式的存储库源时,它会失败:
deb [signed-by=/etc/apt/trusted.gpg.d/repo.charm.sh.gpg] https://repo.charm.sh/apt/ * *
Run Code Online (Sandbox Code Playgroud)
然后它就会失败并显示Unable to handle repository shortcut 'deb [signed-by=/etc/apt/trusted.gpg.d/repo.charm.sh.gpg] https://repo.charm.sh/apt/ * *'.
当然,我可以解决这个特殊情况,按照文档的说明进行操作,然后将内容粘贴到文件中,但如果东西正常工作,我就不必这样做。那么,在使用实用程序命令时,我是否无法正确处理格式,或者由于内部解析位中缺少功能而无法识别它?如果没有,我该怎么做才能让它不失败?
在具有以下规格的 Ubuntu 服务器上:
user@server:~$ uname -mor
5.4.0-139-generic x86_64 GNU/Linux
user@server:~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.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=bionic
UBUNTU_CODENAME=bionic
Run Code Online (Sandbox Code Playgroud)
一切都是最新的:
user@server:~$ sudo apt update
Hit:1 http://mirror.switch.ch/ftp/mirror/ubuntu bionic InRelease
Hit:2 http://mirror.switch.ch/ftp/mirror/ubuntu bionic-updates InRelease
Hit:3 http://mirror.switch.ch/ftp/mirror/ubuntu bionic-security InRelease
Hit:4 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Run Code Online (Sandbox Code Playgroud)
但 apt 显示了两个暂停的软件包:
user@server:~$ sudo apt-mark showhold
docker-ce
docker-ce-cli …Run Code Online (Sandbox Code Playgroud)