Bash

一個 bash shellshock 修復 SLES 的 tar 文件是否不好?

  • October 15, 2014
SERVER:/home/user # rpm -Uvh --test readline-5.1-24.4.7406.0.PTF.898762.i586.rpm
warning: readline-5.1-24.4.7406.0.PTF.898762.i586.rpm: V3 DSA signature: NOKEY, key ID b37b98a9
error: Failed dependencies:
   readline = 5.0-9 is needed by (installed) readline-devel-5.0-9  

SERVER:/home/user # rpm -qa | grep -i readl*
readline-5.0-9
perl-TermReadKey-2.30-2
readline-devel-5.0-9  

SERVER:/home/user # tar -xvf ssbash10GA-i386.tar
bash-3.1-24.4.7406.0.PTF.898762.i586.rpm
readline-5.1-24.4.7406.0.PTF.898762.i586.rpm
SERVER:/home/user #

ssbash10GA-i386.tar 中似乎缺少 readline-devel:

https://download.suse.com/Download?buildid=nNXClbWqawg~

**問題:**我理解正確嗎?

# rpm -Uvh --test readline-5.1-24.4.7406.0.PTF.898762.i586.rpm
error: Failed dependencies:
   readline = 5.0-9 is needed by (installed) readline-devel-5.0-9  

意味著您安裝了 5.0.9 版的 readline-devel 包,而您嘗試安裝的 PTF 只會升級主包,而不是升級主包-devel。一旦您嘗試建構使用 readline 的東西,這可能會導致問題,因為它將使用來自不同版本的標頭檔,而不是隨後連結的版本(這就是存在依賴項的原因)。

因此,您的理解似乎是正確的。

同時,PTF 被正常更新所取代。只需使用zypperyast安裝它。

引用自:https://unix.stackexchange.com/questions/162201