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
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1528901
Accepted
Roger Allen
Roger Allen
Asked: 2024-10-03 22:06:09 +0800 CST2024-10-03 22:06:09 +0800 CST 2024-10-03 22:06:09 +0800 CST

Postgresql 包不可用?[重复]

  • 772
此问题这里已有答案:
如何恢复默认存储库? (4 个回答)
2 天前关闭。

我正在尝试在一台新的 Ubuntu 24.04 机器上安装 postgresql。令我惊讶的是,

$ sudo apt update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease                                          
Hit:3 http://us.archive.ubuntu.com/ubuntu noble InRelease                                                 
Get:4 http://us.archive.ubuntu.com/ubuntu noble-updates InRelease [126 kB] 
Get:5 https://esm.ubuntu.com/apps/ubuntu noble-apps-security InRelease [7,532 B]
Hit:6 http://us.archive.ubuntu.com/ubuntu noble-backports InRelease   
Get:7 https://esm.ubuntu.com/apps/ubuntu noble-apps-updates InRelease [7,468 B]
Get:8 http://us.archive.ubuntu.com/ubuntu noble-updates/universe i386 Packages [167 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages [384 kB]
Get:10 https://esm.ubuntu.com/infra/ubuntu noble-infra-security InRelease [7,462 B]
Get:11 http://us.archive.ubuntu.com/ubuntu noble-updates/universe amd64 c-n-f Metadata [14.9 kB]
Get:12 https://esm.ubuntu.com/infra/ubuntu noble-infra-updates InRelease [7,461 B]
Fetched 721 kB in 1s (497 kB/s)       
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.

失败了:

$ sudo apt install postgresql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package postgresql is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'postgresql' has no installation candidate

据我所知,这个包应该可用,上面的情况是意料之外的。我肯定做了一些事情弄乱了我的计算机,但我不确定是什么。任何帮助都非常感谢。

apt
  • 1 1 个回答
  • 35 Views

1 个回答

  • Voted
  1. Best Answer
    Roger Allen
    2024-10-04T11:25:31+08:002024-10-04T11:25:31+08:00

    我不知道这是怎么发生的,但“软件和更新”应用程序显示不知何故“Canonical 支持的免费开源软件(主要)”被取消选择。然后,选择、更新和安装按预期进行。

    感谢所有发表评论并让我知道这应该可行之人。

    软件与更新

    • 0

相关问题

  • 如何编写 shell 脚本来安装应用程序列表?

  • 如何查看存档中可用的软件包的所有版本?

  • 是否可以说出我安装的哪些软件包不在原版安装中?

  • 如何删除 PPA?

  • 使用 apt-get upgrade 时如何强制安装内核更新?

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