小编Thu*_*fir的帖子

如何升级 Gradle?

这表明Gradle是最新的:

thufir@doge:~$ sudo apt install gradle
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gradle is already the newest version (2.10-1).
0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded.
Run Code Online (Sandbox Code Playgroud)

如何升级到Gradle4.x?最好使用umake而不是 SDKMAN!这似乎是他们的建议

(由于连接速度慢,我不想更新所有软件包。)

upgrade apt versions gradle ubuntu-make

61
推荐指数
2
解决办法
8万
查看次数

如何在 Ubuntu 14.04 中创建文件夹快捷方式?

我的 Dropbox 中有一个文件夹,我想在我的桌面上添加该文件夹的快捷方式。我想这在 Windows 操作系统中应该非常简单:) 但是,我不知道如何在 Ubuntu 14.04 中做到这一点。

我可以做些什么来在我的桌面上创建一个简单的文件夹快捷方式?

filesystem gui configuration shortcuts 14.04

57
推荐指数
4
解决办法
16万
查看次数

找不到单元 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:    17.10
Codename:   artful
thufir@dur:~$ snap list
Name         Version     Rev   Developer   Notes
core         16-2.29.3   3440  canonical   core
docker       17.06.1-ce  171   docker-inc  -
hello-world  6.3         27    canonical   - …
Run Code Online (Sandbox Code Playgroud)

server command-line container docker snap

23
推荐指数
2
解决办法
6万
查看次数

来自启动磁盘创建程序的未知错误

我不明白这个错误Startup Disk Creator

org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/share/usb-creator/usb-creator-helper", line 218, in Format
    parent_dev = _get_parent_object(udisks, device)
  File "/usr/share/usb-creator/usb-creator-helper", line 49, in _get_parent_object
    parent = partition.get_cached_property('Table').get_string()
AttributeError: 'NoneType' object has no attribute 'get_cached_property'
Run Code Online (Sandbox Code Playgroud)

这是什么意思?我只想擦除 2GB MP3 播放器以便将 iso 放在那里。磁盘创建者需要此步骤。

format usb mp3 startup-disk-creator system-installation

18
推荐指数
1
解决办法
1万
查看次数

无法连接到 Mir:无法连接到服务器套接字:没有此类文件或目录

以其他用户身份登录后,如何运行 GUI 程序?

thufir@doge:~$ 
thufir@doge:~$ sudo -u hawat -i
hawat@doge:~$ 
hawat@doge:~$ whoami
hawat
hawat@doge:~$ 
hawat@doge:~$ pwd
/home/hawat
hawat@doge:~$ 
hawat@doge:~$ echo $HOME
/home/hawat
hawat@doge:~$ 
hawat@doge:~$ firefox
No protocol specified
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
Error: cannot open display: :0
hawat@doge:~$ 
Run Code Online (Sandbox Code Playgroud)

gui sudo users user-management mir

18
推荐指数
2
解决办法
10万
查看次数

如何配置 alpine 以在 Ubuntu 中读取我的 gmail?

我想在我的电子邮件活动中使用基于终端的邮件客户端。有人建议我使用 alpine。但是我如何在 Ubuntu 中配置它来阅读我的 gmail 邮件?

email configuration gmail mail command-line

17
推荐指数
1
解决办法
4万
查看次数

如何使用 aptitude 安装软件包?

我看过一个 aptitude教程并阅读了手册页,但我就是不明白。启动 aptitude 后,“安装包 foo”怎么说?或者搜索名称中带有“foo”的所有包?

package-management aptitude packaging command-line

12
推荐指数
1
解决办法
3万
查看次数

逻辑卷未安装但正在使用中。请关闭所有使用此设备的应用程序(例如 iSCSI)

如何使用 调整 LVM 分区的大小system-config-lvm?根据这个 Ask Ubuntu answer

我点击了分区并尝试调整大小,但从system-config-lvm.

逻辑卷未安装但正在使用中。请关闭所有使用此设备的应用程序(例如 iSCSI)。

有什么问题,我该如何解决?

带有弹出错误的 LVM 管理对话框的屏幕截图

另请参阅此询问 Ubuntu 答案

partitioning lvm mount hard-drive system-installation

10
推荐指数
2
解决办法
1万
查看次数

lint:找不到命令

Ubuntu 有 lint 实用程序吗?它是如何安装的?

在计算机编程中,lint 是一种 Unix 实用程序。

https://en.wikipedia.org/wiki/Lint_%28software%29

thufir@mordor:~$ 
thufir@mordor:~$ gcc program.c -o prog
program.c:5:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main()
 ^
thufir@mordor:~$ 
thufir@mordor:~$ ./prog

Hello World

thufir@mordor:~$ 
thufir@mordor:~$ lint program.c
No command 'lint' found, did you mean:
 Command 'line' from package 'util-linux' (main)
 Command 'jlint' from package 'jlint' (universe)
 Command 'link' from package 'coreutils' (main)
 Command 'dlint' from package 'dlint' (universe)
 Command 'lift' from package 'lift' (universe)
 Command 'tint' from package 'tint' (universe)
 Command 'hlint' from …
Run Code Online (Sandbox Code Playgroud)

command-line programming c tee coreutils

9
推荐指数
2
解决办法
9255
查看次数

如何使用 Google 阅读器在 Firefox 中订阅 RSS 提要?

为什么 Firefox 不使用 Google 阅读器订阅某些提要?

一些 RSS 订阅源默认为 Firefox“实时书签”,但提供 Google 阅读器作为选项,其他默认为 Google 阅读器,其他类型的订阅源不提供 Google 阅读器作为选项。

Firefox的知识基础是在细节上有点潦草:

您可以通过单击内容类型列表中的“Web Feed”并从下拉式菜单。

我想添加的“应用程序”是 Google 阅读器,它不是我认为的“应用程序”(我将 Google 阅读器视为网站或服务、在线聚合器)。我希望 Google 阅读器能够处理所有和任何 RSS 或 Atom 内容类型。

如何将 Google 阅读器添加为“应用程序”?

在这个来自网络的屏幕截图中:

在此处输入图片说明

有一个下拉菜单,其中一个选项是“实时书签”。有时谷歌或雅虎是选项,另外还有“选择应用程序”的选项。对于 Google 不在菜单中的那些时候,应该有一种方法可以将 Google 阅读器添加为处理 RSS 提要的“应用程序”。

我知道谷歌做了一个扩展,所以我可以用一个单独的工具栏按钮来做到这一点,但我问的是如何将谷歌阅读器添加为“应用程序”。

Google Reader 工具栏按钮将添加任何类型的提要。

firefox rss google

8
推荐指数
1
解决办法
1614
查看次数