我目前使用的是 Ubuntu 22.04 LTS。
当我尝试使用任何浏览器上传文件时,该网站什么也不做。
在上图中,如果我单击“添加文件”,然后“从您的设备中选择文件”。
我的文件管理器打不开。
拖放功能可以使用,但没有很多网站支持该功能。
当我尝试使用 Chrome 时,文件管理器窗口将启动,但选择文件后浏览器将冻结。
我尝试了一些修复:
xdg-desktop-portal
, xdg-desktop-portal-gtk
, 。ubuntu-restricted-extras
这些是我用来尝试解决此问题的链接:
我正在运行 Ubuntu 22.04 并尝试安装 .NET 7.0.5
我尝试了多种不同的安装 .NET 7 的方法,但它们似乎都不允许我使用 dotnet build 或 dotnetpublish 命令。
Ubuntu 似乎无法识别我的 SDK 已安装,这似乎是某种问题。
dotnet publish -c Release -r linux-x64 --self-contained false
You must install or update .NET to run this application.
App: /usr/share/dotnet/sdk/7.0.302/dotnet.dll
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.5' (x64)
.NET location: /usr/share/dotnet/
No frameworks were found.
Run Code Online (Sandbox Code Playgroud)
我尝试显示 dotnet 版本:
root@localhost:~# dotnet --version
The command could not be loaded, possibly because:
* You intended to execute a .NET application:
The application '--version' does not …
Run Code Online (Sandbox Code Playgroud) 我刚刚升级了我的ubuntu。我在spyder上遇到这个错误:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Traceback (most recent call last):
File "/usr/bin/spyder", line 33, in <module>
sys.exit(load_entry_point('spyder==4.2.1', 'gui_scripts', 'spyder')())
File "/usr/lib/python3/dist-packages/spyder/app/start.py", line 213, in main
mainwindow.main(options, args)
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3624, in main
mainwindow = create_window(app, splash, options, args)
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 3482, in create_window
main.setup()
File "/usr/lib/python3/dist-packages/spyder/app/mainwindow.py", line 803, in setup
self.completions = CompletionManager(self)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/plugin.py", line 97, in __init__
plugin_client = Plugin(self.main)
File "/usr/lib/python3/dist-packages/spyder/plugins/completion/kite/plugin.py", line 50, in __init__
self.installer = …
Run Code Online (Sandbox Code Playgroud) 升级到 Ubuntu 22.04 (Jammy Jellyfish) 后,我注意到 Ruby 2.7.2 出现问题,因此我尝试安装 2.7.2,但失败后,又安装了 2.7.6,它也失败并出现相同的错误:
$ rbenv install 2.7.6
Downloading ruby-2.7.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.6.tar.bz2
Installing ruby-2.7.6...
BUILD FAILED (Ubuntu 22.04 using ruby-build 20220426)
Inspect or clean up the working tree at /tmp/ruby-build.20220428104457.2389.OeOKU9
Results logged to /tmp/ruby-build.20220428104457.2389.log
Last 10 log lines:
from ./tool/rbinstall.rb:846:in `block (2 levels) in install_default_gem'
from ./tool/rbinstall.rb:279:in `open_for_install'
from ./tool/rbinstall.rb:845:in `block in install_default_gem'
from ./tool/rbinstall.rb:835:in `each'
from ./tool/rbinstall.rb:835:in `install_default_gem'
from ./tool/rbinstall.rb:799:in `block in <main>'
from ./tool/rbinstall.rb:950:in `block in <main>'
from ./tool/rbinstall.rb:947:in `each'
from …
Run Code Online (Sandbox Code Playgroud) E:无法找到包 python-openssl
全新安装 22.04(非升级),似乎我遇到了很多问题,试图让我的“常用”工具与捆绑的 Python 3.10.4 一起使用。尝试降级捆绑的 Python 太可怕了,最好使用 venv 或 pipelinev 等开发工具。
RealPython文章这里说我需要安装这些构建工具,得到它(仍然不确定 Pipenv 是否会正确运行),但它在 openssl 上窒息。发生这种情况有什么原因吗?似乎我早些时候在 22.04 世界中遇到了该模块的问题,但无法回忆起具体位置。
我遇到的此类问题越多,我对 3.10 的 Ubuntu 打包程序的疑问就越多,我确信我可以在 pypi.org 等网站上查看这些问题多久能得到解决,但很好奇有多少我的开发同事觉得他们升级基本操作系统太快了?
当我打开 Docker Desktop 时,出现“Docker Desktop 已停止...”。当我打开“故障排除”页面时,“重新启动”按钮呈灰色。
\n我尝试过多种方法:
\n跑步service docker status
\xe2\x97\x8f docker.service - Docker Application Container Engine\n Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset>\n Active: active (running) since Tue 2022-07-26 21:48:21 MDT; 2min 0s ago\nTriggeredBy: \xe2\x97\x8f docker.socket\n Docs: https://docs.docker.com\n Main PID: 4957 (dockerd)\n Tasks: 27\n Memory: 108.5M\n CPU: 374ms\n CGroup: /system.slice/docker.service\n \xe2\x94\x94\xe2\x94\x804957 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/cont>\n
Run Code Online (Sandbox Code Playgroud)\n当我使用命令\n 运行内置诊断工具时 …
UTF-8
以 结尾的语言和不以 结尾的语言有什么区别?特别是在 和it_IT
之间it_IT.UTF-8
,然后我最感兴趣的是在C
和 之间C.UTF-8
。例如,我应该在变量“LC_ALL”之间放置什么C
?C.UTF-8
这是我运行命令时出现的列表locale -a
,这是为了让您更好地理解我关心的问题。
C
C.utf8
en_AG
en_AG.utf8
en_AU.utf8
en_BW.utf8
en_CA.utf8
en_DK.utf8
en_GB.utf8
en_HK.utf8
en_IE.utf8
en_IL
en_IL.utf8
en_IN
en_IN.utf8
en_NG
en_NG.utf8
en_NZ.utf8
en_PH.utf8
en_SG.utf8
en_US.utf8
en_ZA.utf8
en_ZM
en_ZM.utf8
en_ZW.utf8
it_CH.utf8
it_IT.utf8
POSIX
Run Code Online (Sandbox Code Playgroud) 我一直在 Pi4、Ubuntu 22.04 服务器和 Gnome 桌面上运行 Electron 应用程序,没有出现任何问题。由于它无论如何都作为一个单独的应用程序作为信息亭运行,因此我一直在尝试消除 Gnome 并仅从 CLI 启动(安装了 X)。但是,我得到:
ERROR:ozone_platform_x11.cc(247) Missing X server or $DISPLAY
The platform failed to initialize. Exiting.
Run Code Online (Sandbox Code Playgroud)
我读过有关设置“DISPLAY=$HOST_IP:10.0”的信息,但是我不清楚在哪里设置,或者是否适用于这种情况。我对这部分还很陌生,所以任何帮助将不胜感激!
我正在尝试按照官方文档安装 MongoDB 。我正在使用 Ubuntu 22.04.2 LTS。
根据文档,以下命令应该返回OK
,但是当我运行时我得到以下信息curl -fsSL https://pgp.mongodb.com/server-6.0.pub | sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg
:
gpg: WARNING: no command supplied. Trying to guess what you mean ...
pub rsa4096 2022-02-23 [SC] [expires: 2027-02-22]
39BD841E4BE5FB195A65400E6A26B1AE64C3C388
uid MongoDB 6.0 Release Signing Key <packaging@mongodb.com>
Run Code Online (Sandbox Code Playgroud)
我已阅读官方故障排除指南,但找不到与我的问题相关的任何内容。
几个月前,我使用以下命令在 Ubuntu 22.04 上安装了 boost:
sudo apt-get install libboost-all-dev
Run Code Online (Sandbox Code Playgroud)
这次安装的是1.74版本。但是,我需要 1.82,而 22.04 存储库不包含 1.82。
我知道这个页面:
https://www.boost.org/doc/libs/1_82_0/more/getting_started/unix-variants.html
但它提到安装路径为/usr/local
:
选择您的配置选项并再次调用 ./bootstrap.sh(不带 --help 选项)。除非您在系统的 /usr/local/ 目录中具有写权限,否则您可能至少需要使用
而我当前在 Ubuntu 上的安装似乎是/usr/include/boost/
?
我是否只需将 tar 下载到我的Downloads
并输入:
cd Downloads/boost_1_82_0
./bootstrap.sh --prefix=/usr/include/
Run Code Online (Sandbox Code Playgroud)
?
所以问题的重点是,对于Ubuntu我应该使用那个前缀/上面的内容正确吗?
(问是因为我不想破坏我现有的环境)