Ubuntu

Ubuntu用户和开发人员的问答

6
如何在Firefox 57 Quantum中隐藏标题栏?
我曾经使用扩展程序在Firefox中隐藏/显示标题栏,但是自从Firefox 57发布以来,大多数扩展程序都被禁用。 在Chrome中,我只需取消选中“使用系统标题栏和边框”选项,即可完成。 有没有办法做到这一点?
56 firefox 

4
14.04-> 16.04失败; apt(> = 1.0.1ubuntu2.13)未安装
(此问题未解决。由于时间限制,计算机已还原为出厂设置。) 我试图从14.04升级到16.04,但是apt抛出了这个错误: The required dependency 'apt (>= 1.0.1ubuntu2.13)' is not installed. 这是什么意思,我该如何解决? 当我输入命令apt-cache policy apt时 Shageenth@shageenth-Inspiron-3451:~$ apt-cache policy apt apt: Installed: 1.0.1ubuntu2.11 Candidate: 1.0.1ubuntu2.11 Version table: *** 1.0.1ubuntu2.11 0 100 /var/lib/dpkg/status 1.0.1ubuntu2 0 500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages 运行命令时发生错误: sudo do-release-upgrade -d 并产生以下结果: Checking for a new Ubuntu release Get:1 …

9
如何在Ubuntu中设置静态IP?
我是Linux的新手,在Windows服务器/桌面方面有多年经验,并且在设置静态IP时遇到问题。我正在使用一种用于早期版本的Ubuntu的方法,该方法似乎不适用于16.04 我已经使用了命令sudo nano /etc/network/interface并添加了以下内容 iface enp0s25 inet static address 10.10.8.2 netmask 255.255.0.0 gateway 10.10.1.1 dns-nameservers 8.8.8.8 8.8.4.4 我重新启动了系统,以太网几乎已死,ping根本不起作用。我已尝试修改/etc/NetworkManager/NetworkManager.conf并进行了以下更改 #dns=dnsmasq (comment out the dnsmasq) [ifupdown] managed=true (changed from false) 这样,我就可以使以太网偶尔工作,但是最终失败了。 我已经在另外两台计算机以及虚拟机上尝试了此配置,并且所有结果都相同。当我在任何这些计算机上安装Windows时,我可以确认这些设置可以正常工作。同样,当我让DHCP自动配置时,一切正常,没有问题。 我认为我在这里遗漏了一些东西,设置静态IP一点也不难。

4
终端自动完成功能无法正常运行
如果我apt-g在打完之后开始输入命令tab,shell会完成命令到apt-get,但是对于命令的第二部分install,如果我输入某些字符,例如insta打tab,则不会完成它install。 另一个例子:输入后,sudo击打tab不会完成任何操作。例如:sudo apt-ge[ tab],什么也没有。 我使用mini iso(40MB网络安装程序)安装了Ubuntu,所以也许我错过了一个配置! 我已将此代码添加到我的代码中,.bashrc但仍然无法正常工作: if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi 我还检查了的许可,.bashrc它是-rw-r--r--。 我还提供了将.bashrc更改source .bashrc应用到新环境后的更改,但仍然没有效果。 我使用xfce4-terminal它,所以我认为可能是终端而不是bash。 但是编辑: ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml 并更改: <property name="<Super>Tab" type="string" value="switch_window_key"/> 至: <property name="<Super>Tab" type="string" value="empty"/> 也没有任何区别。

5
崇高文字未显示在Nautilus“打开方式”菜单中
我正在运行Ubuntu 15.10。 我的/usr/share/applications/sublime_text.desktop包含以下内容: [Desktop Entry] Version=1.0 Type=Application Name=Sublime Text GenericName=Text Editor Comment=Sophisticated text editor for code, markup and prose Exec=/opt/sublime_text/sublime_text %F Terminal=false MimeType=text/plain; Icon=sublime-text Categories=TextEditor;Development; StartupNotify=true Actions=Window;Document; [Desktop Action Window] Name=New Window Exec=/opt/sublime_text/sublime_text -n OnlyShowIn=Unity; [Desktop Action Document] Name=New File Exec=/opt/sublime_text/sublime_text --command new_file OnlyShowIn=Unity; 右键单击xxx.mdGnome文件(以前为“ Nautilus”)中的markdown文件()时,即使选择“查看所有应用程序”,也看不到“ Sublime Text”。 我什至尝试分别在和和中添加%F到行,但它没有改变任何内容。Exec=/opt/sublime_text/sublime_text -nExec=/opt/sublime_text/sublime_text …

8
升级到Ubuntu 16.04后无法查看Wifi网络
从14.04升级到Ubuntu 16.04后,我无法查看任何wifi网络。尝试升级到Ubuntu 15.10时也会发生此问题。我的网络窗口如下所示: 我在“软件和更新”窗口中启用了Broadcom: 此外,右上角的下拉菜单中没有Wifi选项。屏幕截图来自Ubuntu GNOME,但也不适用于标准Ubuntu。如何启用wifi网络? 输出lspci -knn | grep Net -A2: 07:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01) Subsystem: XAVi Technologies Corp. BCM43142 802.11b/g/n [1b9a:3002] Kernel modules: bcma, wl 输出sudo apt-get install bcmwl-kernel-source: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source …

4
启动时出现“ intel_rapl:没有有效的rapl域”消息
我在ESXI 5.1.0下安装了新的Ubuntu 14. 04服务器。 在安装过程中,我没有得到任何错误或奇怪的东西。我的问题是,当我在控制台屏幕上启动计算机时,收到类似 [ 6.958104] intel_rapl: no valid rapl domains found in package 0 [ 7.508153] intel_rapl: no valid rapl domains found in package 0 [ 8.058695] intel_rapl: no valid rapl domains found in package 0 [ 8.609932] intel_rapl: no valid rapl domains found in package 0 [ …

7
Gimp:将每个图层导出为单独的PNG图像
我遇到的情况是我在Gimp中有多层图像。现在,我想将每个图层作为一个单独的图像(最好是PNG格式)自动导出到某个位置的文件夹中。 这可能吗? 长方法:隐藏除一层以外的所有图层,裁剪所需的部分,导出图像。隐藏保存的图层,取消隐藏其他图层,裁剪部分,导出。重复。对于约20层的图像而言,有点麻烦。

7
Python:没有名为datetime的模块?
操作系统:Ubuntu 14.04 LTS 的Python:2.7.6 我的Gourmet Recipe Manager安装程序突然停止加载。在终端窗口中运行它时,在回溯结束时会得到以下信息: import datetime as dt ImportError: No module named datetime 据我所知,什么都没有改变,我的Python安装是最新的。它昨天只是退出工作。我当然希望能找到诊断和解决此问题的好方法! 更新:感谢所有答复! 蒂姆,很抱歉如果我在错误的地方问了这个问题。请简单地按照Ubuntu网站上的链接将其归为新手。 TheSchwa,我尝试了您的建议,并收到与上述相同的错误消息。 先生,该软件包似乎已安装,但是我不知道它是否已正确安装/配置。我怎么知道? 对于所有问题,我都很抱歉,但是我是RedHat的老家伙,已经离开Linux一段时间了。所有apt / dpkg东西对我来说都是新的。
56 python 

8
如何从资源库安装Adobe Acrobat Reader?
如何使用Trusty apt存储库在Ubuntu 14.04中安装Adobe Acrobat Reader ? 这与“ 如何安装从Adobe网站下载的Adobe Acrobat Reader deb软件包”没有重复?。在中,Synaptic > Repositories > Other software我启用了“规范合作伙伴”,但acroread由于在64位系统上不可用,因此我仍然无法安装。 这是控制台的输出: root@liv-inspiron:/home/liv# apt-get install acroread Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package acroread root@liv-inspiron:/home/liv# apt-get install acroread:i386 Reading package lists... Done Building dependency tree Reading …


5
phpStorm失去键盘输入
phpStorm时不时会丢失我键盘上的输入。我仍然可以单击,但不会注册任何键。其他窗户都很好。需要重新启动phpStorm才能将其恢复。当我在打开的标签页之间按Control + Tab时,似乎最常发生 我正在运行:Ubuntu 13.10 phpStorm 7.1 JRE 1.7.0_51
56 13.10  java  ibus  ide 




By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.