close

現場(環境):Kali linux   套件:shutter

 


原因:

 

某天上班時發現原本在使用的shutter軟體無法正常開啟。

 

所以試著用terminal開啟他看看,

 

發現一樣是無法開啟的狀況。

 


 

處理方式:

 

shutter是我們用apt-get 安裝來的套件。

#apt-get install shutter

 

 

執行上應該不太會有問題,如果出現無法使用的狀況,

 

會先屏除相依性的問題。

 

#shutter

 

=!===========

 

(shutter:20973): Unique-DBus-WARNING **: Error while sending message: Did not receive a

reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

 

INFO: There is already another instance of Shutter running!

 

=!===========

 

再上面的訊息當中我們可以很明顯的看到shutter正在使用中。

 

所以你沒有辦法再開啟第二個shutter

 

但畫面上卻沒有看到任何shutter的圖示。

 

所以用ps 檢查一下我們開啟中的程序。

 

#ps -aux | grep shutter

 

============

 

root 21013 0.0 0.0 12720 968 pts/1 R+ 09:54 0:00 grep shutter

 

root 31169 86.5 3.9 1504208 650908 tty2 Rl+ Sep22 3811:04 /usr/bin/perl /usr/bin/shutter

 

============

 

 

有找到正在被啟用中。

 

我們使用kill的方式強制終止該程序。

 

31169是我們透過ps取得的該程序的pid

 

#kill -9 31169

之後再檢查一下,確認程序的狀況。

 

#ps -aux | grep shutter

 

============

 

root 21071 0.0 0.0 12720 968 pts/1 R+ 09:54 0:00 grep shutter

 

============

 

確認已經沒有程序卡在上面,

 

我們再啟用一次shutter​

 

這次結果是可以正常使用的。

 

(本篇完)

 

 

 

arrow
arrow
    全站熱搜

    IT001 發表在 痞客邦 留言(0) 人氣()