Ubuntu

Ubuntu用户和开发人员的问答

1
找不到单位docker.service
是否需要连接接口?还是这可能是防火墙问题? thufir@dur:~$ sudo snap install docker docker 17.06.1-ce from 'docker-inc' installed thufir@dur:~$ sudo service docker start Failed to start docker.service: Unit docker.service not found. thufir@dur:~$ sudo systemctl status docker Unit docker.service could not be found. thufir@dur:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 17.10 Release: …

4
即使有空间,设备上也没有剩余空间
我通过SSH访问的笔记本电脑屏幕破损。该sudo apt-get autoremove命令给我以下错误 cp: error writing ‘/tmp/mkinitramfs_zN6ZvT//lib/x86_64-linux-gnu/libpthread.so.0’: No space left on device cp: failed to extend ‘/tmp/mkinitramfs_zN6ZvT//lib/x86_64-linux-gnu/libpthread.so.0’: No space left on device cp: error writing ‘/tmp/mkinitramfs_zN6ZvT//sbin/modprobe’: No space left on device cp: failed to extend ‘/tmp/mkinitramfs_zN6ZvT//sbin/modprobe’: No space left on device cp: error writing ‘/tmp/mkinitramfs_zN6ZvT//sbin/rmmod’: No space left on device …
14 apt  disk  disk-usage 

1
将Chrome网页作为桌面应用程序运行
我希望在Gnome Shell中将几个网页作为桌面应用程序运行。这些是要求: 它必须与Google Chrome一起运行。 按Alt+ 时,它必须作为单独的应用程序图标可用Tab。 我看过一个叫做Webby的程序,但是它似乎没有使用Google Chrome作为底层浏览器。到目前为止,我已经创建了.desktop文件,并且能够将应用程序和图标显示在启动器中: [Desktop Entry] Name=Gmail Exec=google-chrome-stable --app=https://mail.google.com/mail/u/0/#inbox Icon=gmail-icon Type=Application Categories=GTK;GNOME;Office; 这可行,并且允许我在单独的窗口中启动应用程序,但是,当我按Alt + Tab时,所有内容仍合并在google chrome图标下。我也尝试为exec路径创建一个符号链接,但这也不起作用。谁有想法?


2
如何知道Ubuntu 16.04何时完成USB格式化?
我只是直接从nautilus格式化了USB,但是一旦选择了条件,USB就会从菜单中消失,并且没有打开任何窗口来显示进度或完成情况。 我在监视CPU和磁盘的系统中看到了,但是我不知道USB何时完全格式化。 更新: 好的,现在我打开了GNOME Disks,我看到了
14 16.04  usb  nautilus 

1
Crontab语法;多个命令
我想获得以下命令链作为cronjob: * * * * * source activate myenv3 && cd ~/foo/bar && python sssb.py 它可以在控制台中工作,但是我没有从cronjob获得任何输出。 我遵循了这个建议,将其替换为 * * * * * env > /tmp/env.output 找出env是否不同。除了PATH以外,我找不到任何相关的内容。所以我成立了 PATH=myPath * * * * * source activate myenv3 && cd ~/foo/bar && python sssb.py 而且仍然没有用。最后我换成了 PATH=myPath * * * * * source activate …
14 cron 

4
Firefox升级失败。lzma错误:压缩数据已损坏
Firefox由于下载(deb)损坏而无法更新 Preparing to unpack .../firefox_32.0+build1-0ubuntu0.14.04.1_i386.deb ... Unpacking firefox (32.0+build1-0ubuntu0.14.04.1) over (31.0+build1-0ubuntu0.14.04.1) ... dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt dpkg-deb: error: subprocess <decompress> returned error exit status 2 dpkg: error processing archive /var/cache/apt/archives/firefox_32.0+build1-0ubuntu0.14.04.1_i386.deb (--unpack): cannot copy extracted data for './usr/lib/firefox/libxul.so' to '/usr/lib/firefox/libxul.so.dpkg-new': unexpected end of file …

1
解压缩并将其输出到脚本
我有一个脚本,带有带有-i标志的输入。我拥有的输入文件已压缩(.gz)。我想做的事情(不确定是否可行),因为文件很大,请执行以下操作: gunzip -c myfile.gz | myScript.pl -i STDIN -o myoutfile.txt 因此,将解压缩的输出通过管道传递到我的脚本输入标志。
14 pipe  gzip 

8
如何安装h.264解码器?
我尝试在电影播放器​​中播放视频,但只能听到音频。我尝试与Dragon Player播放视频,但在这里也只能听到音频。 出现一个消息框,显示以下消息: Python(v2.7)要求安装插件才能播放以下类型的媒体文件:H.264解码器 我尝试安装插件,但无法安装。软件中心也没有提供。如何获得此插件?
14 12.04  video  python-2.7  h264 

1
如何在Ubuntu 18.04上永久禁用触摸屏
我正在尝试在华硕S200E笔记本电脑上禁用触摸屏。在Ubuntu 16.04中,我可以这样做: Section "InputClass" Identifier "evdev touchscreen catchall" MatchIsTouchscreen "on" MatchDevicePath "/dev/input/event*" Driver "libinput" EndSection 如何在Ubuntu 18.04上完成此操作?
14 18.04 

2
Ubuntu 18.04-无法打开蓝牙
在将Ubuntu作为双引导程序安装到Windows 10之后,一切看起来都很棒,但是有一点令人烦恼……我无法打开蓝牙。我的笔记本电脑是三星NP350E7C-S04PL。
14 sound  bluetooth  18.04 

3
如何从以Snap安装的应用程序访问USB存储?
我已经安装了Ubuntu 18.04 LTS。 我将USB闪存插入笔记本电脑。它已自动安装到/ media / username / DISKLABEL并在Nautilus中打开。我可以读写对象。 如何从作为Snap安装的应用程序访问它? 我尝试了以下应用程序如按扣gedit,arduino-mhall119,organize-my-files。如果我导航到/ media文件夹,所有这些都向我显示错误: 活动的Snap 接口的输出如下: $ snap interfaces | grep -v ".*-$" Slot Plug :browser-support organize-my-files :core-support core:core-support-plug :cups-control gedit :desktop gedit,organize-my-files :desktop-legacy gedit,organize-my-files :gsettings gedit,organize-my-files :home arduino-mhall119,gedit,organize-my-files :network arduino-mhall119,gedit,organize-my-files,pulsemixer :opengl organize-my-files :pulseaudio organize-my-files,pulsemixer :unity7 arduino-mhall119,gedit,organize-my-files :wayland gedit :x11 arduino-mhall119,organize-my-files,pulsemixer gnome-3-26-1604:gnome-3-26-1604 …


7
如何以根用户身份运行Dolphin?
我目前正在使用dolphin 17.04.3,每当我以sudo身份运行它时,都会出现以下错误, Executing Dolphin as root is not possible.而没有解释原因或提供替代方法。那么,如何以root用户身份运行海豚来复制或删除文件?
14 kde  root  dolphin 

7
Python3 pip3在Ubuntu上安装失败
我在Ubuntu16.04上成功安装了python3和pip3,但pip3的安装已损坏。我该如何解决这个问题?的错误信息pip3 install如下: # pip3 install xlwt Traceback (most recent call last): File "/usr/bin/pip3", line 9, in <module> from pip import main File "/usr/lib/python3/dist-packages/pip/__init__.py", line 21, in <module> from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning ModuleNotFoundError: No module named 'pip._vendor.requests' 输出 sudo -H pip3 install --upgrade pip sudo -H pip3 install --upgrade pip Traceback …

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.