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-669227

nyluje's questions

Martin Hope
nyluje
Asked: 2019-01-20 01:19:41 +0800 CST

certbot 版本升级未实现

  • 2

我想更新certbot以应对以下主题: 如何停止将 TLS-SNI-01 与 Certbot 一起使用

升级前:certbot --version返回:certbot 0.26.1

按照How to stop using TLS-SNI-01 with Certbot中的说明,我想更新到 0.28 以上的版本。

我已经查看了如何升级ubuntu我已经执行:

apt-get install –only-upgrade python-certbot-apache

它返回:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libapache2-mod-php7.0 php7.0-cli php7.0-common php7.0-json php7.0-opcache
  php7.0-readline python-acme python-augeas python-certbot python-cffi-backend
  python-chardet python-configargparse python-configobj python-cryptography
  python-dialog python-dnspython python-enum34 python-funcsigs python-idna
  python-ipaddress python-mock python-ndg-httpsclient python-openssl
  python-parsedatetime python-pbr python-pyasn1 python-requests python-rfc3339
  python-six python-tz python-urllib3 python-zope.component python-zope.event
  python-zope.hookable python-zope.interface
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  python-certbot-apache
1 upgraded, 0 newly installed, 0 to remove and 270 not upgraded.
Need to get 3872 B of archives.
After this operation, 3072 B of additional disk space will be used.
Get:1 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial/main amd64 python-certbot-apache all 0.28.0-1+ubuntu16.04.1+certbot+3 [3872 B]
Fetched 3872 B in 0s (28.3 kB/s)
(Reading database ... 38437 files and directories currently installed.)
Preparing to unpack .../python-certbot-apache_0.28.0-1+ubuntu16.04.1+certbot+3_all.deb ...
Unpacking python-certbot-apache (0.28.0-1+ubuntu16.04.1+certbot+3) over (0.25.0-2+ubuntu16.04.1+certbot+1) ...
Setting up python-certbot-apache (0.28.0-1+ubuntu16.04.1+certbot+3) ...

所以看起来更新成功了。

同样,当我这样做时,certbot --version它仍然会返回:certbot 0.26.1

updates apt apache2 16.04 letsencrypt
  • 2 个回答
  • 2357 Views
Martin Hope
nyluje
Asked: 2017-04-11 08:57:25 +0800 CST

缺少 Ubuntu 16.04 上的包管理器 [重复]

  • 3
这个问题在这里已经有了答案:
尝试使用 APT 安装软件包时“无法找到软件包” 7 个答案
5年前关闭。

阅读该问题后,我意识到我需要安装supervisor.

sudo apt-get install supervisor告诉我:

E: Unable to locate package supervisor

sudo apt-cache search supervisor什么都不给。

此外,当我查看其他问题时,它似乎默认安装在 Ubuntu 16.04 中。

我正在使用 Ubuntu 16.04 LTS。

为什么我找不到这个包?我该如何安装它?

我还查看了主管官方文档上的安装建议,但我更喜欢使用分发包解决方案。

apt
  • 1 个回答
  • 6745 Views
Martin Hope
nyluje
Asked: 2017-03-31 00:52:47 +0800 CST

Ubuntu 16.04 上的包“acl”

  • 4

我正在阅读这个数字海洋教程。在步骤 1 中,它说:

我们需要 [...] acl 在安装应用程序时设置正确的目录权限

我想检查是否acl已经安装:

$ dpkg -s acl
dpkg-query: package 'acl' is not installed and no information is
available Use dpkg --info (= dpkg-deb --info) to examine archive
files, and dpkg --contents (= dpkg-deb --contents) to list their
contents.

然后我的逻辑告诉我用 寻找它apt-cache search,然后我运行apt-cache search acl;它返回一个包列表,但我没有看到一个名为 strict 的包acl。

经过一番调查,我在 SO, here and there发现了类似的问题。

我试试:apt-cache policy acl。它返回:

acl:   
   Installed: (none)   
   Candidate: 2.2.52-3   
   Version table:
     2.2.52-3 500
     500 https://mirrors.gandi.net/ubuntu xenial/main amd64 Packages

所以我想这意味着acl安装好了。

我不明白,因为我这样做时似乎已安装,apt-cache policy acl为什么dpkg -s acl返回未安装?

我在 apt-cache 命令文档中读到了一些我不理解的内容:

apt-cache policy 显示包源的优先级以及单个包的优先级

apt
  • 2 个回答
  • 3359 Views
Martin Hope
nyluje
Asked: 2017-03-29 23:44:34 +0800 CST

“postgres: command not found” / 定期安装 postgres 并配置新数据目录后

  • 12

我正在 UBUNTU 16.04 服务器上设置 POSTGRESQL:

我按照这里给出的解释,我做了:安装:

sudo apt-get install postgresql postgresql-contrib`

postgres用户和密码的设置:

sudo -u postgres psql postgres
\password [postgres password]

那时命令postgres起作用了。

然后在创建任何 SCHEMA 之前,我按照一些指南为 POSTGRES 下设置了一个新的数据目录/srv/datadisk01/database,datadisk01 是一个硬盘驱动器,用于存储和使用数据库。

我将所有者更改/srv/datadisk01/database为postgres用户chmod。

我启动了:/usr/lib/postgresql/9.5/bin/initdb -D /srv/datadisk01/database,它奏效了。

然后我跑了sudo service postgresql stop。我更新了文件/etc/postgresql/9.5/main/postgresql.conf,改变了

data_directory = ‘/var/lib/postgresql/9.5/main’

至

data_directory = ‘/srv/datadisk01/database’

和sudo service postgresql start。

我停在那里并切换到与 POSTGRES 无关的其他主题设置。

稍后(并重新启动机器),命令postgres失败并返回:

postgres: command not found

我可以看看如何重新配置​​环境变量以使其工作,但我想知道在执行自定义数据目录后命令可用性从环境变量中消失是否有原因?

command-line
  • 4 个回答
  • 64998 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