readlineライブラリを使用して指定されたmariadbバージョンをインストールできないのはなぜですか?

readlineライブラリを使用して指定されたmariadbバージョンをインストールできないのはなぜですか?

私のオペレーティングシステム情報:

uname -a
Linux debian 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux

地域設定:

locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Webページの指示に従ってmariadbをインストールしました。

MariaDBのインストール

sudo apt update && sudo apt upgrade
sudo apt-get install curl software-properties-common dirmngr -y
sudo curl -LsSO https://mariadb.org/mariadb_release_signing_key.asc
sudo chmod -c 644 mariadb_release_signing_key.asc
sudo mv -vi mariadb_release_signing_key.asc /etc/apt/trusted.gpg.d/
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] https://mirror.realcompute.io/mariadb/repo/10.6/debian bullseye main'
sudo apt update
sudo apt install mariadb-server mariadb-client

これで、次のように必要なバージョンを入手できます。

mariadb --version
mariadb  Ver 15.1 Distrib 10.6.4-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper

私のOSで私が得るものは次のとおりです。

mariadb --version
mariadb  Ver 15.1 Distrib 10.5.12-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper

質問1:私の/etc/apt/sources.listには次のようなものがあります。

deb [arch=ppc64el,arm64,amd64] https://mirror.realcompute.io/mariadb/repo/10.6/debian bullseye main
deb-src [arch=ppc64el,arm64,amd64] https://mirror.realcompute.io/mariadb/repo/10.6/debian bullseye main

バージョンを指定しましたが、10.6なぜsources.listバージョンがインストールされているのですか10.5

質問#2:libreadline-devオペレーティングシステムにインストールしました。

sudo  dpkg -l | grep  readline
ii  libreadline-dev:amd64                  8.1-1                           amd64        GNU readline and history libraries, development files
ii  libreadline8:amd64                     8.1-1                           amd64        GNU readline and history libraries, run-time libraries
ii  readline-common                        8.1-1                           all          GNU readline and history libraries, common files

for debian-linux-gnu (x86_64) using EditLine wrapperインストール後にオペレーティングシステムにfor debian-linux-gnu (x86_64) using readline EditLine wrapperWebページに記載されている内容が表示されないのはなぜですか?

cat  /etc/apt/sources.list
deb http://mirrors.163.com/debian/ bullseye main non-free contrib
deb http://mirrors.163.com/debian/ bullseye-updates main non-free contrib
deb http://mirrors.163.com/debian/ bullseye-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ bullseye main non-free contrib
deb-src http://mirrors.163.com/debian/ bullseye-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ bullseye-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ bullseye/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ bullseye/updates main non-free contrib
deb http://httpredir.debian.org/debian/ bullseye main contrib non-free

deb http://deb.debian.org/debian bullseye-backports main
deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable
deb [arch=ppc64el,arm64,amd64] https://mirror.realcompute.io/mariadb/repo/10.6/debian bullseye main
deb-src [arch=ppc64el,arm64,amd64] https://mirror.realcompute.io/mariadb/repo/10.6/debian bullseye main

source.listを使用した更新:

sudo apt update && sudo apt list --upgradable
Hit:1 http://mirrors.163.com/debian bullseye InRelease
Hit:2 http://repo.mysql.com/apt/debian buster InRelease                                                                                                                     
Get:3 http://mirrors.163.com/debian bullseye-updates InRelease [39.4 kB]                                                                                                    
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                
Get:5 http://mirrors.163.com/debian bullseye-backports InRelease [43.7 kB]                                                                                                  
Get:6 http://deb.debian.org/debian bullseye-backports InRelease [43.7 kB]                                                                                                   
Hit:7 http://httpredir.debian.org/debian bullseye InRelease                                                                                                                 
Ign:8 http://mirrors.163.com/debian-security bullseye/updates InRelease                                                                                                     
Err:9 http://mirrors.163.com/debian-security bullseye/updates Release                                                
  404  Not Found [IP: 112.90.131.246 80]
Hit:11 https://download.docker.com/linux/debian bullseye InRelease                                                   
Hit:10 https://cli-assets.heroku.com/apt ./ InRelease                                          
Get:12 http://mirrors.163.com/debian bullseye-backports/main Sources.diff/Index [63.3 kB]
Get:13 http://deb.debian.org/debian bullseye-backports/main amd64 Packages.diff/Index [63.3 kB]
Get:14 http://mirrors.163.com/debian bullseye-backports/main amd64 Packages.diff/Index [63.3 kB]
Get:15 http://ppa.launchpad.net/boltgolt/howdy/ubuntu impish InRelease [18.0 kB]       
Get:16 http://mirrors.163.com/debian bullseye-backports/main Sources T-2021-11-13-1401.28-F-2021-11-13-0801.26.pdiff [623 B]
Get:17 http://deb.debian.org/debian bullseye-backports/main Translation-en.diff/Index [25.2 kB]
Get:16 http://mirrors.163.com/debian bullseye-backports/main Sources T-2021-11-13-1401.28-F-2021-11-13-0801.26.pdiff [623 B]
Get:18 http://mirrors.163.com/debian bullseye-backports/main amd64 Packages T-2021-11-13-1401.28-F-2021-11-13-1401.28.pdiff [191 B]
Get:18 http://mirrors.163.com/debian bullseye-backports/main amd64 Packages T-2021-11-13-1401.28-F-2021-11-13-1401.28.pdiff [191 B]
Err:15 http://ppa.launchpad.net/boltgolt/howdy/ubuntu impish InRelease            
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8CEBC97F3E9E1D58
Get:19 http://deb.debian.org/debian bullseye-backports/main amd64 Packages T-2021-11-13-2001.35-F-2021-11-13-1401.28.pdiff [14.5 kB]
Get:19 http://deb.debian.org/debian bullseye-backports/main amd64 Packages T-2021-11-13-2001.35-F-2021-11-13-1401.28.pdiff [14.5 kB]
Get:20 http://deb.debian.org/debian bullseye-backports/main Translation-en T-2021-11-13-2001.35-F-2021-11-13-2001.35.pdiff [9,997 B]
Get:20 http://deb.debian.org/debian bullseye-backports/main Translation-en T-2021-11-13-2001.35-F-2021-11-13-2001.35.pdiff [9,997 B]
Err:21 https://mirror.realcompute.io/mariadb/repo/10.6/debian bullseye InRelease                                                                                            
  Connection failed [IP: 114.141.111.226 443]
Reading package lists... Done                                                                                                                                               
E: The repository 'http://mirrors.163.com/debian-security bullseye/updates Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ppa.launchpad.net/boltgolt/howdy/ubuntu impish InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8CEBC97F3E9E1D58
E: The repository 'http://ppa.launchpad.net/boltgolt/howdy/ubuntu impish InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

ベストアンサー1

MariaDBのアップグレード

/etc/apt/sources.listいいですね。あなたの項目に解決しなければならないいくつかの問題があるようです(詳細は以下のセクションを参照)。しかし、私が知っている限り、これはあなたのMariaDBの問題とは関係ありません。 MariaDB 10.6リポジトリのエントリが正常に動作しているようです。

お知らせいただいた情報によると、MariaDBバージョンはすでにインストールされているため、10.5.12に残っていると推測されます。今後更新されたMariaDBリポジトリsources.listsudo apt upgrade

$ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  mariadb-server
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

aptMariaDBは10.6に自動的にアップグレードされません。アップグレードするには、一部の10.5関連の依存関係パッケージを削除する必要があるためです。この問題を解決するには、アップグレードするパッケージを明示的に指定するのと同じくらいmariadb-server簡単でなければなりません。mariadb-clientただ実行するsudo apt upgrade mariadb-server mariadb-clientと、プロンプトが次のように表示されます。

$ sudo apt upgrade mariadb-server mariadb-client
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libconfig-inifiles-perl
Use 'sudo apt autoremove' to remove it.
The following packages will be REMOVED:
  mariadb-client-10.5 mariadb-client-core-10.5 mariadb-server-10.5 mariadb-server-core-10.5
The following NEW packages will be installed:
  libdaxctl1 libndctl6 libpmem1 liburing1 mariadb-client mariadb-client-10.6 mariadb-client-core-10.6 mariadb-server-10.6 mariadb-server-core-10.6
The following packages will be upgraded:
  mariadb-server
1 upgraded, 9 newly installed, 4 to remove and 0 not upgraded.
Need to get 13.7 MB of archives.
After this operation, 5,323 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

その場合は、y続行を入力し、MariaDBバージョン10.6がインストールされていることを確認してくださいmariadb --version

$ mariadb --version
mariadb  Ver 15.1 Distrib 10.6.5-MariaDB, for debian-linux-gnu (x86_64) using readline EditLine wrapper

あなたの質問では、問題#2に関する注意事項としてバージョン10.5mariadb --versionが出力されます。しなければならないusing EditLine wrapper読まないで読んでくださいusing readline Editline wrapper。この異常な現象は完全に正常であり、存在とは関係ありませんlibreadline-dev


注意:Debianセキュリティイメージ

前述したように、sources.list解決すべきいくつかの問題があります。これはMariaDBの質問の範囲外ですが、セキュリティに関する最も重要な問題を解決するためにここで追跡します。

どちらdebian-securityのソースもDebian 10(Buster)と以前のバージョンの古いフォーマットを使用し、これはDebian 11(Bullseye)へのアップグレード中に変更されました。出力で生成されたエラーを表示できますsudo apt update

deb http://mirrors.163.com/debian-security/ bullseye/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ bullseye/updates main non-free contrib

この行を削除して新しい形式に置き換える必要があります。Debian セキュリティチームは、ミラーをセキュリティリポジトリとして使用することをお勧めしません。、これが公式イメージです。

deb http://security.debian.org/debian-security bullseye-security main contrib non-free
deb-src http://security.debian.org/debian-security bullseye-security main contrib non-free

内部ソースファイルにはいくつかの異なるエラーがありますが、/etc/apt/sources.list.d/それを修正することはこの質問の範囲外です。sudo apt updateこれらのエラーを直接修正するには、出力でエラーを確認してください。

おすすめ記事