我正在阅读 Linux Standard Base 并想知道 Ubuntu 中使用的结构是否与 LSB 中建议的结构相同。我知道有些发行版没有遵循 LSB 或对 LSB 进行了一些更改,所以我也想知道 Ubuntu 是否有一些更改,以及这些更改是什么。
我最近将 18.04 版本升级到 20.04(早,我知道),并清除了我手动安装的“hplip”包(3.16.11)并安装了版本(3.20.3+dgfsg0-2)中的官方包。一切似乎都很好,直到我开始收到消息来更新我的驱动程序。确保我今天没有其他要打印的东西,我按照说明操作只是让“hp-plugin”命令无法使用以下回溯下载插件...
Traceback (most recent call last):
File "/usr/share/hplip/ui5/plugindialog.py", line 248, in NextButton_clicked
status, download_plugin_file, error_str = self.pluginObj.download(self.plugin_path,self.plugin_download_callback)
File "/usr/share/hplip/installer/pluginhandler.py", line 254, in download
core = core_install.CoreInstall()
File "/usr/share/hplip/installer/core_install.py", line 239, in __init__
self.passwordObj = password.Password(ui_mode)
File "/usr/share/hplip/base/password.py", line 88, in __init__
self.__readAuthType() # self.__authType
File "/usr/share/hplip/base/password.py", line 110, in __readAuthType
distro_name = get_distro_name().lower()
File "/usr/share/hplip/base/password.py", line 78, in get_distro_name
return distro.linux_distribution(full_distribution_name=False)[0]
File "/usr/lib/python3/dist-packages/distro.py", line 122, in linux_distribution
return _distro.linux_distribution(full_distribution_name)
File "/usr/lib/python3/dist-packages/distro.py", line 677, in linux_distribution …
Run Code Online (Sandbox Code Playgroud) 我在机器上安装了 Ubuntu 14.04.1 LTS 并使用以下命令将其内核版本升级到 4.2:
sudo apt-get install linux-generic-lts-wily
Run Code Online (Sandbox Code Playgroud)
我对内核版本和发布名称有点困惑。一些软件提供了不同版本的二进制文件:Trusty、Utopic、Vivid、Wily……
在这种情况下,我应该下载 Trusty 的二进制文件还是软件提供的更新版本名称的二进制文件?
我相信我在从 Ubuntu GNOME 15.10 升级到 16.04 的过程中发现了它,但我确信我发现它只是在dist-upgrade
,我有时会收到以下警告dpkg
:
dpkg: warning: version '/etc/lsb-release' has bad syntax: version number does not start with a digit
Run Code Online (Sandbox Code Playgroud)
该/etc/lsb-release
文件的内容是:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
Run Code Online (Sandbox Code Playgroud)
所以我不完全确定问题是什么以及我应该怎么做(如果有的话)......这是lsb-release
文件中的错误(我没有注意到的地方)还是这是一个问题dpkg
或...... .?
当我尝试 pip install Django 或其他任何东西时出现错误,例如..
pip install Django
抛出错误:
Traceback (most recent call last): File "/usr/local/bin/pip", line
11, in <module>
sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 233, in
main
return command.main(cmd_args) File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 251,
in main
timeout=min(5, options.timeout)) as session: File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 72,
in _build_session
insecure_hosts=options.trusted_hosts, File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 329, in
__init__
self.headers["User-Agent"] = user_agent() File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 93, in
user_agent
from pip._vendor import distro File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/distro.py", line
1050, in <module>
_distro = LinuxDistribution() File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/distro.py", line
594, in __init__ …
Run Code Online (Sandbox Code Playgroud) 命令行显示 ubuntu 版本为 14.04,而 GUI 显示为 13.10。
我昨天将系统从 12.04 升级到 14.04。当安装了大约 60-65% 的更新时,我不得不关闭系统。当我早上重新启动系统时,系统启动正常,但现在显示如上问题 和
.
这是 的输出sudo apt-get update
。它清楚地表明更新是从“trusty”进行的。我尝试升级到 14.04(假设我在 13.10 上)sudo update-manager -d
但我收到消息说“软件是最新的”。
有人可以解释我如何解决它。另外系统如何从失败的更新中恢复?
此外,系统现在需要很长时间才能启动,并且还有另一个小问题。当我登录系统时,出现了一个小故障,如本视频所示。这是在我输入密码之后。它与我上面提到的问题有关还是其他什么?
根据以下启动板,该版本ubuntu-22.04.2
已于 15 小时前发布。
https://launchpad.net/ubuntu/+milestone/ubuntu-22.04.2
\nMilestone information\nProject:\n Ubuntu\nSeries:\n Jammy\nVersion:\n ubuntu-22.04.2\nExpected:\n 15 hours ago \nActive:\n Yes. Drivers can target bugs and blueprints to this milestone. \n
Run Code Online (Sandbox Code Playgroud)\n但下面的链接仍然显示最新的是22.04.1:
\nhttps://ubuntu.com/download/desktop
\nUbuntu 22.04.1 LTS\nThe latest LTS version of Ubuntu, for desktop PCs and laptops. LTS stands for long-term support \xe2\x80\x94 which means five years of free security and maintenance updates, guaranteed until April 2027.\n
Run Code Online (Sandbox Code Playgroud)\nubuntu-22.04.2
按照说明在哪里下载launchpad
?
我看到lsb_release
下面提到了。
https://www.ionos.com/digitalguide/server/know-how/how-to-check-debian-version/
不幸的是,它可能不适用于所有基于 Debian 的系统;例如,在普通 Ubuntu 20.04.2 上,它返回以下内容:
$ lsb_release
No LSB modules are available.
Run Code Online (Sandbox Code Playgroud)
有没有其他方法可以让我了解我当前安装的 Ubuntu 基于哪个版本的 Debian?
我需要 Ubuntu 代号来生成apt
源代码。
在 Ubuntu 上,我可以使用lsb_release --codename --short
,它将返回 (eg) trusty
。
在(例如)Linux Mint 上,如果我使用lsb_release -cs
,它会返回(例如)rosa
。如果我想要上游代号,我可以使用lsb_release -csu
(返回trusty
)。
但是,如果我lsb_release -csu
在 Ubuntu 上使用,则会出现错误 lsb_release: error: no such option: -u
。
有没有办法获得最上游的 Ubuntu 代号,包括在Ubuntu 上?
我经常忘记与我的 Ubuntu 版本相对应的版本名称。有没有一种简单的方法(最好是命令行方法)可以从说
11.10 -> Distro Name
Run Code Online (Sandbox Code Playgroud)
我知道我们有
lsb_release -a
Run Code Online (Sandbox Code Playgroud)
假设有人有 Skeltor,我想知道 Zenogi 是否更新?两次发布之间间隔了多少时间?它们相隔多少个版本?
如果之前有人问过这个问题,我很抱歉。如果有的话我就找不到它了。我的问题是关于 Ubuntu 发布周期的。这让我很困惑。Ubuntu 22.04 的正式发布日期是今天(2022 年 4 月 21 日)。然而,Beta 版本似乎已经推出至少几周了。当我访问 Ubuntu 页面时,我没有看到 Ubuntu 22.04 可供下载:
https://ubuntu.com/download/desktop
列出的有 20.04.04 和 21.10。但是,通过网络搜索,我可以找到 Beta 版本和 Daily Build 的链接:
https://releases.ubuntu.com/22.04/(测试版)
https://cdimage.ubuntu.com/daily-live/current/(每日构建)
那么正式版是哪一款呢?是吗?我意识到以前也发生过官方发布日期被推迟的情况,但这次似乎并非如此。其中任何一个就足够了,并且可以通过以下方式进行任何更改吗apt-get upgrade
?或者我应该等到桌面下载页面上显示 22.04?这一切让我感到困惑,尤其是最近 8 小时内出现的文章称正式版本已发布。任何澄清将不胜感激。