我最近从 19.04 升级到 Ubuntu 19.10。当我尝试安装某个软件包时,它要求我通过 autoremove 删除许多软件包。所以我运行命令,它删除了 php7.2-fpm。
现在我无法安装 php7.2-fpm。
$ sudo apt-get install php7.2-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package php7.2-fpm 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
Run Code Online (Sandbox Code Playgroud)
我试图添加ondrej PPA。但它仍然无法正常工作。
请帮忙。
我的 netbeans 也停止工作。
更新
我现在可以通过安装 JDK13 来使用 netbeans。我还是被迫使用PHP7.3。我无法使用 PHP7.2。有人让我显示 sudo apt-get update 的输出。所以我把它贴在这里:
xxx@Ubuntu-PC:~$ sudo apt-get update
[sudo] password for xxx:
Hit:1 http://in.archive.ubuntu.com/ubuntu eoan InRelease
Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu eoan InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu eoan-updates InRelease
Hit:4 http://security.ubuntu.com/ubuntu eoan-security InRelease
Hit:5 http://archive.canonical.com/ubuntu eoan InRelease
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease
Hit:7 https://deb.opera.com/opera-stable stable InRelease
Ign:8 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:9 http://dl.google.com/linux/chrome/deb stable Release
Reading package lists... Done
Run Code Online (Sandbox Code Playgroud)
您应该使用替换 python 包才能注册 ondrej 的 PPA
sudo apt install software-properties-common
Run Code Online (Sandbox Code Playgroud)
然后注册PPA
add-apt-repository ppa:ondrej/php
Run Code Online (Sandbox Code Playgroud)
现在你可以安装你的 PHP 包了
sudo apt-get install php7.2 php7.2-fpm php7.2-cli php7.2-xml php7.2-mysql
Run Code Online (Sandbox Code Playgroud)
检查您的可用版本
update-alternatives --list php
Run Code Online (Sandbox Code Playgroud)
并切换到它
sudo update-alternatives --set php /usr/bin/php7.2
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
11196 次 |
| 最近记录: |