Tidak dapat menemukan paket apa pun php7 4?

Pastikan server web Anda menggunakan PHP 7 dengan benar. 4 soket/modul. Edit konfigurasi nginx Anda untuk mengubah jalur soket (gantikan 'nginx_vhost' dengan nama file Anda yang benar, saya. e. 'bawaan')

$ sudo apt install php7.4-fpm
0

Misalnya, ubah baris di bawah ini dari php7. 3 hingga php7. 4

$ sudo apt install php7.4-fpm
_1

Ctrl+x, lalu 'y' untuk menyimpan dan keluar. Mulai ulang PHP dan Nginx

$ sudo apt install php7.4-fpm
_2

4. Ubah versi default PHP

Jika Anda memiliki beberapa versi PHP yang terinstal di server Ubuntu Anda, Anda dapat mengatur PHP 7. 2 sebagai default

Hai,
Menggunakan ISP Config 3 di Ubuntu 18. 04. 5 LTS
mencoba menambahkan php 7. 3 & 7. 4 sebagai versi tambahan dengan mengikuti tutorial ini https. // www. howtoforge. com/tutorial. fig-3-dari-debian-paket-di-debian-8-dan-9/
ketika saya menjalankan perintah ini;

Kode

apt-get install php7.3 php7.3-cli php7.3-cgi php7.3-fpm php7.3-gd php7.3-mysql php7.3-imap php7.3-curl php7.3-intl php7.3-pspell php7.3-recode php7.3-sqlite3 php7.3-tidy php7.3-xmlrpc php7.3-xsl php7.3-zip php7.3-mbstring php7.3-soap php7.3-opcache php7.3-common php7.3-json php7.3-readline php7.3-xml

pengembalian server;

Kode

Reading package lists.. Done
Building dependency tree
Reading state information.. Done
E: Unable to locate package php7.3
E: Couldn't find any package by glob 'php7.3'
E: Couldn't find any package by regex 'php7.3'
E: Unable to locate package php7.3-cli
E: Couldn't find any package by glob 'php7.3-cli'
E: Couldn't find any package by regex 'php7.3-cli'
E: Unable to locate package php7.3-cgi
E: Couldn't find any package by glob 'php7.3-cgi'
E: Couldn't find any package by regex 'php7.3-cgi'
E: Unable to locate package php7.3-fpm
E: Couldn't find any package by glob 'php7.3-fpm'
E: Couldn't find any package by regex 'php7.3-fpm'
E: Unable to locate package php7.3-gd
E: Couldn't find any package by glob 'php7.3-gd'
E: Couldn't find any package by regex 'php7.3-gd'
E: Unable to locate package php7.3-mysql
E: Couldn't find any package by glob 'php7.3-mysql'
E: Couldn't find any package by regex 'php7.3-mysql'
E: Unable to locate package php7.3-imap
E: Couldn't find any package by glob 'php7.3-imap'
E: Couldn't find any package by regex 'php7.3-imap'
E: Unable to locate package php7.3-curl
E: Couldn't find any package by glob 'php7.3-curl'
E: Couldn't find any package by regex 'php7.3-curl'
E: Unable to locate package php7.3-intl
E: Couldn't find any package by glob 'php7.3-intl'
E: Couldn't find any package by regex 'php7.3-intl'
E: Unable to locate package php7.3-pspell
E: Couldn't find any package by glob 'php7.3-pspell'
E: Couldn't find any package by regex 'php7.3-pspell'
E: Unable to locate package php7.3-recode
E: Couldn't find any package by glob 'php7.3-recode'
E: Couldn't find any package by regex 'php7.3-recode'
E: Unable to locate package php7.3-sqlite3
E: Couldn't find any package by glob 'php7.3-sqlite3'
E: Couldn't find any package by regex 'php7.3-sqlite3'
E: Unable to locate package php7.3-tidy
E: Couldn't find any package by glob 'php7.3-tidy'
E: Couldn't find any package by regex 'php7.3-tidy'
E: Unable to locate package php7.3-xmlrpc
E: Couldn't find any package by glob 'php7.3-xmlrpc'
E: Couldn't find any package by regex 'php7.3-xmlrpc'
E: Unable to locate package php7.3-xsl
E: Couldn't find any package by glob 'php7.3-xsl'
E: Couldn't find any package by regex 'php7.3-xsl'
E: Unable to locate package php7.3-zip
E: Couldn't find any package by glob 'php7.3-zip'
E: Couldn't find any package by regex 'php7.3-zip'
E: Unable to locate package php7.3-mbstring
E: Couldn't find any package by glob 'php7.3-mbstring'
E: Couldn't find any package by regex 'php7.3-mbstring'
E: Unable to locate package php7.3-soap
E: Couldn't find any package by glob 'php7.3-soap'
E: Couldn't find any package by regex 'php7.3-soap'
E: Unable to locate package php7.3-opcache
E: Couldn't find any package by glob 'php7.3-opcache'
E: Couldn't find any package by regex 'php7.3-opcache'
E: Unable to locate package php7.3-common
E: Couldn't find any package by glob 'php7.3-common'
E: Couldn't find any package by regex 'php7.3-common'
E: Unable to locate package php7.3-json
E: Couldn't find any package by glob 'php7.3-json'
E: Couldn't find any package by regex 'php7.3-json'
E: Unable to locate package php7.3-readline
E: Couldn't find any package by glob 'php7.3-readline'
E: Couldn't find any package by regex 'php7.3-readline'
E: Unable to locate package php7.3-xml
E: Couldn't find any package by glob 'php7.3-xml'
E: Couldn't find any package by regex 'php7.3-xml'
_

Apa yang saya lakukan salah?

 

Mencoba mengikuti instruksi LinuxBabe untuk menginstal tumpukan LAMP (Rasa Linux adalah Debian Buster). Saat mencoba menginstal php7. 4, saya mendapatkan kesalahan untuk setiap paket yang dia daftarkan, dimulai dengan

E. Tidak dapat menemukan paket php7. 4
E. Tidak dapat menemukan paket apa pun dengan glob ‘php7. 4'
E. Tidak dapat menemukan paket apa pun dengan regex 'php7. 4'

Begitu seterusnya untuk masing-masing paket yang direkomendasikan. Ini adalah versi php yang sama yang ditentukan pada halaman panduan admin NextCloud untuk instalasi di Linux. Saya memeriksa dua kali dan tiga kali baris perintah. Apa yang saya lewatkan?

Bagaimana cara mengaktifkan php7 4 di Ubuntu?

Coba yang berikut ini. .
sudo apt update && sudo apt upgrade
sudo add-apt-repository ppa. ondrej/php -y
sudo apt instal php7. .
sudo apt instal php7. 4-{cli,umum,keriting,zip,gd,mysql,xml,mbstring,json,intl}
sudo pembaruan-alternatif --config php
Pilih php7. 4
sudo apt-get install libapache2-mod-php7

Cara menginstal PHP7. 4 Debian 10?

Cara Memasang PHP 7. 4 FPM pada Debian 10 Buster .
Perbarui Repositori yang tepat. Pertama, kita perlu memastikan bahwa sistem kita mutakhir. .
Tambahkan Repositori. .
PHP 7. 4 Instalasi. .
Instal Komposer (opsional).
Verifikasi. .
Bonus. .
Kata Akhir

Cara memutakhirkan PHP7. 2 sampai 7. 4 di Ubuntu?

Tingkatkan PHP dari 7. 2/7. 3 sampai 7. 4 di Ubuntu .
Tambahkan PPA untuk PHP 7. 4. Tambahkan ondrej/php yang memiliki PHP 7. 4 paket dan ekstensi PHP lain yang diperlukan. .
Instal PHP7. 4 untuk Apache. Jalankan perintah berikut untuk menginstal PHP 7. 4. .
Mulai ulang PHP7. 4 FPM

Cara menurunkan versi PHP 8 ke 7. 4 di Ubuntu?

Singkatnya yang perlu Anda lakukan adalah. .
Pastikan paket php untuk versi yang Anda inginkan sudah diinstal
Perbarui konfigurasi apa pun untuk versi PHP itu
Perbarui konfigurasi server web Anda untuk menunjuk ke versi PHP yang benar
Arahkan PHP CLI ke versi PHP yang benar
Mulai ulang server web Anda dan php-fpm
Tutupi daemon php-fpm lama