AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-526312

André Carvalho's questions

Martin Hope
André Carvalho
Asked: 2020-05-20 04:35:52 +0800 CST

将 Ubuntu 升级到 20.04 后 Vim 出现问题

  • 4

我最近使用 Ubuntu 从 19.10 升级到 20.04 do-release-upgrade,没有遇到任何问题。我在我的系统中安装了 Vim(从源代码构建)。但是现在,当我尝试运行 Vim 时,我得到了这个错误:

vim: error while loading shared libraries: libperl.so.5.28: cannot open shared object file: No such file or directory

我总是按照以下说明从源代码构建 Vim:https ://github.com/ycm-core/YouCompleteMe/wiki/Building-Vim-from-source 。我已经删除了我的旧安装并重新构建它,并且发生了同样的错误。关于如何继续使 Vim 工作的任何提示?

编辑1:我跑sudo /sbin/ldconfig -v了,输出是:https ://pastebin.com/dAcGdVWE

vim upgrade make
  • 1 个回答
  • 869 Views
Martin Hope
André Carvalho
Asked: 2019-07-19 09:58:42 +0800 CST

为什么我的 Ubuntu 18.04 中有两个 PostgreSQL 版本?

  • 1

每次我在 Ubuntu 18.04 中安装 PostgreSQL(即使我要求apt-get使用 a 专门安装版本 11 sudo apt-get install postgresq-11)我都会在我的系统中获得版本 10 和版本 11。

andre@linuxrocks:/var/lib/postgresql$ ls -la
total 48
drwxr-xr-x  5 postgres postgres  4096 jul 18 01:17 .
drwxr-xr-x 86 root     root      4096 jul  5 14:54 ..
drwxr-xr-x  3 postgres postgres  4096 abr 16 10:19 10
drwxr-xr-x  3 postgres postgres  4096 jul 13 00:37 11

数据库中的对象在这两个文件夹中重复。

postgres=# \! find ~ -type f -name 16563
/var/lib/postgresql/11/main/base/13132/16563
/var/lib/postgresql/10/main/base/16385/16563

我有两个postgresql.conf,每个文件夹中都有一个,尽管 DBMS 似乎只从 11 个文件夹中的一个中获取其配置。

ps -f -u postgres在我查看所有 PostgreSQL 进程并看到我的系统创建了重复的进程(一个来自 10 文件夹,另一个来自 11)之后,我发现了这种奇怪的行为。所以我已经清除并重新安装了 PostgreSQL(使用sudo apt-get install postgresq-11),现在我不再有重复的进程了。

andre@linuxrocks:~$ ps -f -u postgres
UID        PID  PPID  C STIME TTY          TIME CMD
postgres  1595     1  0 14:30 ?        00:00:00 /usr/lib/postgresql/11/bin/postgres -D /var/lib/postgresql/11/mai
postgres  1684  1595  0 14:30 ?        00:00:00 postgres: 11/main: logger   
postgres  1692  1595  0 14:30 ?        00:00:00 postgres: 11/main: checkpointer   
postgres  1693  1595  0 14:30 ?        00:00:00 postgres: 11/main: background writer   
postgres  1694  1595  0 14:30 ?        00:00:00 postgres: 11/main: walwriter   
postgres  1695  1595  0 14:30 ?        00:00:00 postgres: 11/main: autovacuum launcher   
postgres  1696  1595  0 14:30 ?        00:00:00 postgres: 11/main: stats collector   
postgres  1697  1595  0 14:30 ?        00:00:00 postgres: 11/main: logical replication launcher   
postgres 11074 11073  0 14:33 pts/0    00:00:00 bash
postgres 11078 11074  0 14:33 pts/0    00:00:00 /usr/lib/postgresql/11/bin/psql
postgres 11091  1595  0 14:33 ?        00:00:00 postgres: 11/main: postgres postgres [local] idle

即便如此,我有两个文件夹和重复的对象。为什么会这样?

apt process postgresql duplicate
  • 1 个回答
  • 1279 Views
Martin Hope
André Carvalho
Asked: 2016-05-05 05:53:54 +0800 CST

/var/www/html 和我自己的网站文档根目录的权限问题

  • 53

我试图不在我的文件夹中授予777权限/var/www/html,但我想在没有sudo. 所以我想在我的主目录中创建一个文件夹的符号链接/var/www/html。我使用以下方法创建了它:

sudo ln -sT /home/andre/www/moodle/ moodle

ls -la输出是这样的:

andre@andre-270E5G:/var/www/html$ ls -la
total 8
drwxr-xr-x 2 root root 4096 Mai  4 10:20 .
drwxr-xr-x 4 root root 4096 Abr 29 14:29 ..
lrwxrwxrwx 1 root root   23 Mai  4 10:20 moodle -> /home/andre/www/moodle/

所以,我的moodle文件夹对每个人都有读、写和执行权限,这不是我想要的。我使用了命令:

sudo chmod -R 775 moodle/

试图更改它,但它保留了对所有人的读取、写入和执行权限。moodle我对 中的文件夹进行了相同的尝试/home/andre/www/moodle,但它保持不变。ls -lain的输出/home/andre/www/为:

andre@andre-270E5G:~/www$ ls -la
total 28
drwxrwxr-x  3 andre andre  4096 Mai  4 10:02 .
drwx------ 49 andre andre 20480 Mai  4 10:01 ..
drwxrwxr-x 41 andre andre  4096 Mai  4 10:02 moodle

所以里面的文件夹moodle有/home/andre/www/我想要的权限。

作为另一个问题,当我访问时,localhost/moodle我得到 403 Forbidden 错误。

我在这里做错了什么?

permissions
  • 3 个回答
  • 304368 Views
Martin Hope
André Carvalho
Asked: 2016-04-04 13:51:24 +0800 CST

2.1.11安装后GnuPG还是1.4.16

  • 1

我已按照教程中的步骤安装 GnuPG 2.1.11(甚至发现 libgpg-error 版本的错误,但已更正)。即便如此,当我执行 a 时gpg --version,系统响应是:

gpg (GnuPG) 1.4.16
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

当我打开我的 Enigmail Firefox 扩展(我安装 GnuPG 2.1.11 的原因)时,它告诉我我仍然有 GnuPG 1.4.16,并且我需要 2.1.11 才能使用 Enigmail。

我错过了什么?安装没有错误。为什么我的 Ubuntu 14.04 无法识别 2.1.11 GnuPG 安装?还是有更好的安装方法?

14.04
  • 1 个回答
  • 2188 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve