小编Jac*_*Dev的帖子

如何卸载 Visual Studio Code?

我不久前安装了 Visual Studio Code,现在我正在尝试将其删除。我不记得我是如何安装它的,但是我尝试删除它的所有方法都不起作用。我尝试过的事情:

  1. sudo umake web visual-studio-code --remove:这说“无法删除,因为你没有安装它”,我知道这不是真的。我能够在 /home/jacob/.local/share/umake/web/visual-studio-code 中找到这些文件。顺便说一下,删除这些文件会阻止应用程序运行,但不会从启动器中删除图标。一旦我想通了,我就恢复了文件。
  2. 通过软件中心删除:它确实出现在软件中心,但是当我点击“删除”时没有任何反应。

还有其他建议吗?

software-center uninstall ubuntu-make

55
推荐指数
4
解决办法
21万
查看次数

启用了 http2 但仍通过 http1.1 提供服务

为了在我的 16.04 服务器上启用 HTTP/2,我按照Google 的推荐遵循了本指南,但出于某种原因,我的站点仍然通过 HTTP/1.1 提供服务。我已经检查并再次检查一切是否正确,重新启动服务(和服务器!)几次,都无济于事。

  • http2 mod在apache2中启用。
  • Protocols h2 h2c http/1.1 已添加到我的站点配置文件中(并且刚刚在我的 apache.conf 中进行了测试)
  • 我已经重新启动了服务和服务器

我错过了什么吗?

编辑:

刚刚运行curl -I -k --http2 https://framework.jacob.rocks/并收到以下...

HTTP/1.1 200 OK
Date: Thu, 20 Jul 2017 17:12:52 GMT
Server: Apache/2.4.27 (Ubuntu)
Upgrade: h2,h2c
Connection: Upgrade
Link: <https://framework.jacob.rocks/wp-json/>; rel="https://api.w.org/"
Link: <https://framework.jacob.rocks/>; rel=shortlink
X-TEC-API-VERSION: v1
X-TEC-API-ROOT: https://framework.jacob.rocks/wp-json/tribe/events/v1/
X-TEC-API-ORIGIN: https://framework.jacob.rocks
Content-Type: text/html; charset=UTF-8
Run Code Online (Sandbox Code Playgroud)

server networking apache2

7
推荐指数
1
解决办法
6104
查看次数

无法安装任何东西,依赖错误

我对 Linux/命令行的东西非常陌生,所以请原谅我的无知。

每次我尝试使用安装任何东西时sudo apt-get install ...都会出现依赖错误。我正在尝试在我的机器上安装 OpenSSH Server 和 GitLab,每当我输入命令时,我似乎都会收到这样的依赖错误:

sudo apt-get install openssh-server
reading package lists... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 openssh-server : Depends: libwrap0 (>= 7.6-4~) …
Run Code Online (Sandbox Code Playgroud)

server apt dependencies git software-installation

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

别名 xdg-open 打开

有没有办法将命令更改xdg-open为更简单的open?包括传递路径的能力吗?例如,xdg-open .我不想输入 ,而是简单地输入open .

command-line bash alias

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