每次開機都跳出「下載額外資料檔案失販 flashplugin-installer」 [論壇 - 新手村]
正在瀏覽:
1 名遊客
每次開機都跳出「下載額外資料檔案失販 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2008/9/16 22:00 所屬群組:
已註冊使用者 等級: 15
HP : 0 / 351
![]() |
ubuntu 16.04
每次開機進入桌面都跳出這個(如附件)求解
2017/6/15 6:12
|
||||||||||
![]() |
回覆: 每次開機都跳出「下載額外資料檔案失敗 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 905
![]() |
我也有遇到相同的問題。
我其實也不曉得怎麼解決這個問題, 我個人是採取等待,等待下一次官方更新, 或是也可以「移除flashplugin-installer」然後「改採用另一個套件」。 (後記: 也可以參考下面回覆「#5」「#6」「#7」的分析) 不過提供一個我測試得到的訊息給您參考,若您有興趣深究的話。 我的環境是「Xubuntu 16.04 amd64 英文界面」。 執行
顯示
## 以前相關的討論 * 回覆: opera 36 如何安裝 adobe flash player * 回覆: Browser Vivaldi stable_1.0.435.38-1 Release =========================================================== 若要探索「flashplugin-installer」這個套件的話,以下參考步驟 執行
會下載一個檔案「flashplugin-installer_26.0.0.126ubuntu0.16.04.1_amd64.deb」 然後執行下面指令解開「flashplugin-installer_26.0.0.126ubuntu0.16.04.1_amd64.deb」這個檔案
會解開到「flashplugin-installer」這個資料夾 然後執行指令,觀看「flashplugin-installer」這個資料夾結構
顯示 flashplugin-installer ├── usr │ ├── lib │ │ ├── flashplugin-installer │ │ │ └── install_plugin │ │ ├── iceape │ │ │ └── plugins │ │ ├── iceweasel │ │ │ └── plugins │ │ ├── midbrowser │ │ │ └── plugins │ │ ├── mozilla │ │ │ └── plugins │ │ ├── xulrunner │ │ │ └── plugins │ │ └── xulrunner-addons │ │ └── plugins │ └── share │ ├── doc │ │ └── flashplugin-installer │ │ ├── changelog.gz │ │ └── copyright │ ├── package-data-downloads │ │ └── flashplugin-installer │ └── ubufox │ └── plugins └── var ├── cache │ └── flashplugin-installer └── lib └── flashplugin-installer 26 directories, 4 files 關於「flashplugin-installer/usr/lib/flashplugin-installer/install_plugin」這個檔案, 安裝到系統的位置就是「/usr/lib/flashplugin-installer/install_plugin」。 關於「flashplugin-installer/usr/share/package-data-downloads/flashplugin-installer」這個檔案, 安裝到系統的位置就是「/usr/share/package-data-downloads/flashplugin-installer」。 執行下面指令,觀看「flashplugin-installer/usr/share/package-data-downloads/flashplugin-installer」的內容
顯示
=========================================================== 然後執行下面指令,解開「Control File」。
會得到一個資料夾「DEBIAN」 執行下面指令,觀看「DEBIAN」這個資料夾結構
顯示
關於「DEBIAN/postinst」這個檔案, 安裝到系統的位置就是「/var/lib/dpkg/info/flashplugin-installer.postinst」。 這部份請參考「Debian Wiki / MaintainerScripts」。 若已經安裝「flashplugin-installer」這個套件了,也可執行下面指令
顯示
執行
顯示
執行下面指令
會顯示「/var/lib/dpkg/info/flashplugin-installer.postinst」的內容。 如同執行
也可以執行
會顯示
=========================================================== ## 相關的檔案路徑 * /var/lib/dpkg/info/flashplugin-installer.postinst * /usr/share/package-data-downloads/flashplugin-installer * /usr/lib/flashplugin-installer/install_plugin =========================================================== ## Debian Wiki * MaintainerScripts * DpkgTriggers =========================================================== 一些套件探索的討論案例連結,紀錄在「[索引] 套件操作實務」。 =========================================================== 以上提供參考 報告完畢 ![]()
2017/6/15 13:10
|
||||||||||
![]() |
回覆: 每次開機都跳出「下載額外資料檔案失販 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員三級
![]() ![]() 註冊日期:
2008/9/16 22:00 所屬群組:
已註冊使用者 等級: 15
HP : 0 / 351
![]() |
非常詳盡了
跪謝^ ^
2017/6/15 15:30
|
||||||||||
![]() |
回覆: 每次開機都跳出「下載額外資料檔案失敗 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 905
![]() |
剛剛做了點測試,紀錄下來提供額外參考
執行下面指令,建立資料夾「~/tmp/flash」
執行下面指令,切換到「~/tmp/flash」
=========================================================== 執行下面指令,下載「http://archive.canonical.com/pool/partner/a/adobe-flashplugin/adobe-flashplugin_20170613.2.orig.tar.gz」。
=========================================================== 接下來有兩種方式,可以測試 ## 測試一 因為看到有「/var/lib/dpkg/info/flashplugin-installer.templates」這個檔案, 所以聯想到可以執行「dpkg-reconfigure」
然後輸入剛剛的路徑「/home/user/tmp/flash」<--請改成絕對路徑(user請改成自己的帳號) 按下「Tab」鍵,切換到「OK」,按下「Enter」確定執行。 就會顯示
然後再執行
顯示
發現時間是有變動的 然後也可以執行
顯示
再執行一次
把剛剛輸入的路徑「/home/user/tmp/flash」給清空 按下「Tab」鍵,切換到「OK」,按下「Enter」確定執行。 再執行一次
顯示
=========================================================== ## 測試二 也可以直接執行下面的指令
顯示
然後再執行
顯示
發現時間是有變動的 =========================================================== 從「/usr/lib/flashplugin-installer/install_plugin」 和「/var/lib/dpkg/info/flashplugin-installer.postinst」 可以看到有使用「update-alternatives」。 執行
顯示
執行
顯示
=========================================================== 執行
顯示
執行
顯示
執行
顯示
執行
顯示
=========================================================== 執行
顯示
執行
顯示
=========================================================== ## 相關檔案 * /etc/alternatives/mozilla-flashplugin * /var/lib/dpkg/alternatives/mozilla-flashplugin
顯示
=========================================================== ## Debian Wiki * DebianAlternatives * FlashPlayer ## Debian Reference * 2.5.10. The update-alternatives command =========================================================== ## Package * debconf * debconf-doc * debian-policy ## Manpage $ man confmodule $ man debconf-devel $ man 7 debconf $ man debconf $ man debconf-show $ man dpkg-reconfigure ## 相關路徑 * /usr/share/debconf/confmodule * /usr/share/doc/debian-policy/debconf_specification.txt.gz =========================================================== 以上提供參考 ![]()
2017/6/15 15:50
|
||||||||||
![]() |
回覆: 每次開機都跳出「下載額外資料檔案失敗 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 905
![]() |
從上面「回覆#2」一開始提到的訊息,其中有一行
samwhelp 寫到: 可以研究「update-notifier-common」這個套件提供的機制, 主要是研究跟「DpkgTriggers」這個相關的議題, 還有「/usr/share/package-data-downloads」的用途。 執行
顯示
可以看到有「/var/lib/dpkg/info/update-notifier-common.triggers」這個檔案 可以執行下面指令觀看「/var/lib/dpkg/info/update-notifier-common.triggers」這個檔案的內容。
等同執行下面的指令
會顯示
以下我目前理解到的流程, 當安裝一個新的套件時,並且在「/usr/share/package-data-downloads」有放置檔案時, 則會觸發執行「/var/lib/dpkg/info/update-notifier-common.postinst」這個「MaintainerScripts」。 然後觀看「/var/lib/dpkg/info/update-notifier-common.postinst」這個檔案的內容。 可以看到其中會執行「/usr/lib/update-notifier/package-data-downloader」。 所以可以研究「/usr/lib/update-notifier/package-data-downloader」裡面的內容,來瞭解相關的機制。 我有做了一個簡單的套件打包範例放在「GitHub」上, 該套件會安裝一個檔案「/usr/share/package-data-downloads/demo」, 來粗略模擬「/usr/share/package-data-downloads/flashplugin-installer」下載的流程, 根據「/usr/share/package-data-downloads/demo」內容的設定, 會下載「https://raw.githubusercontent.com/samwhelp/demo-about-debian-package/master/download/demo.txt」。 下載完畢後,就會執行「/usr/bin/demo」這個「Shell script」。 這個「Shell Scirpt」,會將「/var/lib/update-notifier/package-data-downloads/partial/demo.txt」這個檔案, 複製到「/tmp/demo.txt」,並且dump內容。 除了「flashplugin-installer」這個套件, 另外還有一個套件「ttf-mscorefonts-installer」也有採用「/usr/share/package-data-downloads」的機制。 ================================================================================ 執行
顯示
執行
顯示
可以看到「/usr/lib/update-notifier/package-data-downloader」這個「Python script」,有呼叫一個外部指令「/usr/lib/apt/apt-helper」 直接執行
顯示
我有簡單製做了一個「範例檔案」,放在「GitHub」上,供下載測試用。 所以透過「/usr/lib/apt/apt-helper」,可以執行如下的指令來下載
或是執行
正常下載就會顯示
根據上面的指令指定的,下載的路徑放在「/tmp/demo.txt」。 ================================================================================ 也可以測試錯誤的狀況,將「/tmp/demo.txt」改成 「/tmp/」。
顯示
類似上面「回覆#2」的提示訊息 (不過狀況應該是不一樣的,只是舉例說明) 執行下面指令,測試下載網址不存在的狀況。
顯示
================================================================================ ## Debian Wiki * DpkgTriggers ## 相關連結 * Draft spec for new dpkg "triggers" feature * dpkg: How to use trigger? * dpkg triggers, the lost how-to document ## Manpage $ man deb-triggers $ man dpkg-trigger ## Spec $ less /usr/share/doc/dpkg-dev/triggers.txt.gz ## Example $ firefox https://anonscm.debian.org/cgit/users/seanius/dpkg-triggers-example.git $ git clone git://anonscm.debian.org/users/seanius/dpkg-triggers-example.git $ git clone https://anonscm.debian.org/git/users/seanius/dpkg-triggers-example.git ================================================================================ 執行
執行
顯示
================================================================================ 以上補充 報告完畢 ![]()
2017/6/17 17:34
|
||||||||||
![]() |
回覆: 每次開機都跳出「下載額外資料檔案失敗 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 905
![]() |
可以嘗試將上面「回覆 #5]」提到的範例。
把「/demo/usr/share/package-data-downloads/demo」修改, 可以把「Sha256:...」那刻意寫錯, 也就是把
改成(後面多加一個「z」,來測試)
然後重新打包安裝, 就會顯示下面的訊息。
然後觀察到會有下面幾個檔案產生 * /var/lib/update-notifier/user.d/data-downloads-failed * /usr/share/package-data-downloads/demo * /var/lib/update-notifier/package-data-downloads/demo.failed * /var/lib/update-notifier/package-data-downloads/partial/demo.txt.FAILED 執行
顯示
================================================================================ 若要再度呼叫提示的對話框,只要執行下面兩行,然後等待一會兒,就會再度出現
如何發現上面這個方法,可以參考
可以看到其中有一段
上面「/usr/lib/update-notifier/user.d/」 要改成「/var/lib/update-notifier/user.d/」。 而「~/.update-notifier/hooks_seen」 要改成~/.config/update-notifier/hooks_seen」 另外「/var/lib/update-notifier/dpkg-run-stamp」這個路徑, 也可以從「/etc/apt/apt.conf.d/99update-notifier」找到。
================================================================================ 執行下面指令,可以預覽跳出對話框的原型
或是
================================================================================ ## 以下一些相關的路徑紀錄 * /var/lib/update-notifier/user.d/data-downloads-failed * /usr/share/update-notifier/package-data-downloads-failed * /usr/share/update-notifier/package-data-downloads-failed-permanently * /etc/xdg/autostart/update-notifier.desktop * /usr/share/update-notifier/ui/hooks-dialog.ui * /etc/cron.daily/update-notifier-common * /usr/lib/update-notifier/package-data-downloader * /usr/share/package-data-downloads/demo * /var/lib/update-notifier/package-data-downloads/demo.failed * /var/lib/update-notifier/package-data-downloads/partial/demo.txt.FAILED * ~/.config/update-notifier/hooks_seen * /etc/update-notifier/hooks_seen ================================================================================ ## 額外一提 從「/usr/lib/update-notifier/update-motd-updates-available」 看到一個指令「/usr/lib/update-notifier/apt-check --human-readable」。 執行
顯示
執行
顯示
執行
顯示
執行
顯示
所以可以執行
或是執行
可以得到一個套件列表 ================================================================================ 以上提供參考 報告完畢 ![]()
2017/6/20 16:24
|
||||||||||
![]() |
回覆: 每次開機都跳出「下載額外資料檔案失敗 flashplugin-installer」 |
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
會員五級
![]() ![]() 註冊日期:
2012/4/22 10:50 所屬群組:
已註冊使用者 等級: 37
HP : 0 / 905
![]() |
延續上面的「回覆 #6」,接下來可以做幾個測試
================================================================================ ## 測試一 執行下面指令
然後填入下面的內容 Priority: High Name: test update-notifier Name-zh_TW.UTF-8: 測試 update-notifier Description: This is test for update-notifier Description-zh_TW.UTF-8: 這是 用來測試 update-notifier 存檔後,大概經過170秒,就會跳出一個對話框。(延遲秒數我不是很確定,請耐心等待) ----------------------------------- Information available ----------------------------------- Update information ----------------------------------- test update-notifier This is test for update-notifier ----------------------------------- 若沒有跳出對話框,或是要讓對話框再次出現 可以執行下面指令
對話框不會立即出現,大概需要等待170秒。 ================================================================================ ## 測試二 接下來做另一個測試 執行下面指令
然後填入下面內容
存檔後,執行下面指令,設定可執行
先執行下面指令測試
會顯示 ========================= from update-notifier ========================= 會經過一分鐘後,才會跳出另一個提示字元,可以直接按下「ctrl+c」。 再來執行下面指令,修改剛剛產生的「/var/lib/update-notifier/user.d/test-update-notifier」
加入下面兩行 Terminal: True Command: /usr/bin/demo-update-notifier-callback 也就最後的內容如下 Priority: High Terminal: True Command: /usr/bin/demo-update-notifier-callback Name: test update-notifier Name-zh_TW.UTF-8: 測試 update-notifier Description: This is test for update-notifier Description-zh_TW.UTF-8: 這是一個 用來測試 update-notifier 存檔後,大概經過170秒,就會跳出一個對話框。 ----------------------------------- Information available ----------------------------------- Update information ----------------------------------- test update-notifier This is test for update-notifier ----------------------------------- [ Run this action now ] 然後可以按下「Run this action now」那個按鈕, 就會開啟一個「Terminal」,並且執行「/usr/bin/demo-update-notifier-callback」。 也就是跟據上面「/var/lib/update-notifier/user.d/test-update-notifier」, 的設定「Command: /usr/bin/demo-update-notifier-callback」。 ================================================================================ 另外有一個檔案「~/.config/update-notifier/hooks_seen」
顯示
================================================================================ 執行下面指令,下載「update-notifier」的「Source Package」
$ cd update-notifier-3.168.4/ 然後可以參考一些檔案的內容 * README * README.testing * HOOKS * src/hooks.c * src/update-notifier.c * src/update.c ================================================================================ 以上提供參考 報告完畢 ![]()
2017/6/20 16:40
|
||||||||||
![]() |
您可以查看帖子.
您不可發帖.
您不可回覆.
您不可編輯自己的帖子.
您不可刪除自己的帖子.
您不可發起投票調查.
您不可在投票調查中投票.
您不可上傳附件.
您不可不經審核直接發帖.