问题标签 [ubuntu-18.04]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ubuntu-18.04 - Ubuntu 18.04 在安装时崩溃到 tty1
今天下午我收到了从 17.10 升级到 18.04 的通知。关闭下载的文件并在我外出时让它运行。当我回来时,它提示了一些回应。我给了这些并在安装(出现)后重新启动系统以正常终止。它不会启动到 Gnome,而是给我一个 CL 界面。任何人有任何建议如何解决这个问题?我已经运行 dpkg 等来尝试解决问题。
python - 由于缺少“functools_lru_cache”,更新到 Ubuntu 18.04 后无法导入 matplotlib
我最近将我的 Ubuntu 更新到 18.04,现在在使用 Python (2.7) 时,我无法再导入 matplotlib。导入时出错:
我通过安装 matplotlib
和 matplotlib 一样,functools_lru_cache-module 安装在
我在这里想念什么?
我尝试按照此处的建议卸载并重新安装“functools_lru_cache”模块: python 2.7 functools_lru_cache does not import 尽管已安装 ,但这没有帮助。还是一样的错误。
c++ - 对`i2c_smbus_read_word_data(int,unsigned char)的未定义引用
更新到 Ubuntu 18.04 后,我无法编译我的 Qt 应用程序。
出现以下错误:
据我了解,i2c_smbus_read_word_data 现在不在 linux/i2c-dev.h 中定义,而是在动态库 /usr/lib/x86_64-linux-gnu/libi2c.so 中定义。
我尝试动态链接:
和静态:
但我仍然有编译错误
UPD:安装了 libi2c-dev、libi2c0 和 i2c-tools 软件包。
ruby-on-rails-5 - 启动rails控制台时出错
当我尝试启动 Rails 控制台时,出现以下错误,
我怎样才能解决这个问题?
ssl - Pidgin for XMPP -- SSL 握手失败
我安装了最新的 Ubuntu 18.04,并尝试像以前一样使用 Pidgin 连接到我们内部的 XMPP 服务器(它很旧,我无法访问)。
但我无法连接...出现SSL Handshake Failed
错误。
这是我在调试窗口中得到的:
(10:37:11) account: Connecting to account d.goosens@%%SERVER_NAME%%/Spark 2.6.3.
(10:37:11) connection: Connecting. gc = 0x55e3f7cdca10
(10:37:11) dnsquery: Performing DNS lookup for %%SERVER_IP%%
(10:37:11) dnsquery: IP resolved for %%SERVER_IP%%
(10:37:11) proxy: Attempting connection to %%SERVER_IP%%
(10:37:11) proxy: Connecting to %%SERVER_IP%%:5222 with no proxy
(10:37:11) proxy: Connection in progress
(10:37:11) proxy: Connecting to %%SERVER_IP%%:5222.
(10:37:11) proxy: Connected to %%SERVER_IP%%:5222.
(10:37:11) jabber: Sending (d.goosens@%%SERVER_NAME%%/Spark 2.6.3): <?xml version='1.0' ?>
(10:37:11) jabber: Sending (d.goosens@%%SERVER_NAME%%/Spark 2.6.3): <stream:stream to='%%SERVER_NAME%%' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
(10:37:11) jabber: Recv (177): <?xml version='1.0' encoding='UTF-8'?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="%%SERVER_NAME%%" id="a1c57c52" xml:lang="en" version="1.0">
(10:37:11) jabber: Recv (486): <stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism><mechanism>CRAM-MD5</mechanism></mechanisms><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression><auth xmlns="http://jabber.org/features/iq-auth"/><register xmlns="http://jabber.org/features/iq-register"/></stream:features>
(10:37:11) jabber: Sending (d.goosens@%%SERVER_NAME%%/Spark 2.6.3): <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
(10:37:11) jabber: Recv (50): <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
(10:37:11) nss: Handshake failed (-12279)
(10:37:11) connection: Connection error on 0x55e3f7cdca10 (reason: 5 description: SSL Handshake Failed)
(10:37:11) account: Disconnecting account d.goosens@%%SERVER_NAME%%/Spark 2.6.3 (0x55e3f700e310)
(10:37:11) connection: Disconnecting connection 0x55e3f7cdca10
(10:37:11) connection: Destroying connection 0x55e3f7cdca10
(10:37:12) util: Writing file prefs.xml to directory /home/dgoosens/.purple
(10:37:12) util: Writing file /home/dgoosens/.purple/prefs.xml
(替换了 SERVER_NAME 和 SERVER_IP)
尝试了所有可能的帐户设置...但似乎没有任何效果...
有什么建议么 ?
windows-10 - Hyper-V W10 (Host) Ubuntu 18.04 (Guest): Why does enhanced session mode not work?
I have installed Ubuntu 18.04 as a guest system on a Windows 10 host system using Hyper-V and I want to use the guest system in full-screen mode. To resize the screen as far as I have learned I need to run the guest system in enhanced session mode.
If I am connecting to the guest system it neither lets me choose the screen size nor activate the Enhanced Session Mode.
Enhanced Session Mode (User) and Enhanced Session Mode Policy (Server) are activated under the Hyper-V Settings.
I have also tried to deactivate the RemoteFX setting -> no changes
Guest services are activated -> no changes
As far as I have learned Ubuntu 18.04 LTS should already support the enhanced session mode.
g++ - ubuntu 18.04 升级后 lex/bison 编译错误
我正在尝试开始编译器项目的下一阶段,编译时出现此错误
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libfl.so:未定义对“yylex”collect2的引用:错误:ld返回1退出状态Makefile :82: 目标“gpl”的配方失败
我回到了之前的阶段,做了一个 make clean 并重新编译,现在都没有编译,同样的错误(它以前做过)。这发生在我升级到 Ubuntu 18.04 之后。我后来检查了进一步的升级,看看是否有任何必需的软件包需要更新,但没有。有谁知道为什么更新后停止工作?(可能是配置文件什么的?)
python-3.x - PyQt5 - Ubuntu 18.04 - 请求 HTTPS url 时 QNetworkReply 出现错误 99
我正在使用Python 3.6和 PyQt5 构建一个应用程序。我在Ubuntu 16.04上使用 QNetworkReply 和 QtNetwork 的 QNetworkRequest 发出 HTTP 请求,如下所示:
(我正在展示我的代码的简化版本,但仍然会抛出错误)
自从我将操作系统升级到Ubuntu 18.04后,每次我向HTTPS网址。
但是,如果在示例中,我将https://www.google.fr替换为http://www.google.fr,则效果很好。我猜它通常必须处理 HTTPS url,但我找不到它为什么会在 Ubuntu 18 上发生。如果有人可以帮助我,请提前感谢!
python - Gtk 3.0 MenuItem() 与 Grid()
我正在尝试使用 Gtk3 和 Python 创建一个菜单,它的条目像 HTML 表一样对齐。列的值具有不同的长度。我希望菜单看起来像这样:
我认为我可以简单地使用 Gtk.Grid() 将 Gtk.Labels() 添加到它,然后将网格附加到 Gtk.MenuItem()。这是我的尝试
但这不起作用。只有最后一个元素(label_3)被显示(在最左边的位置)。我不明白为什么这不起作用。任何帮助表示赞赏。
postman - 删除文件 /home/diba/Downloads/Postman/snapshot_blob.bin 时出错:权限被拒绝
我在 ubuntu 18.04 上下载了 postman 应用程序来测试我的 api,在安装过程中我遇到了一个问题,所以我尝试删除这个包,顺便说一下我从我的主目录中删除了存档:
sudo rm -rf postman.tar.gz
但是无法删除主包,当我尝试将其移至垃圾箱时遇到此错误-->
删除文件 /home/aaaa/Downloads/Postman/snapshot_blob.bin 时出错:权限被拒绝。
我在下面尝试了这些命令
sudo apt-get purge 邮递员
sudo apt-get 删除邮递员
sudo apt-get remove --auto-remove postman
但仍然没有运气!