2020年1月31日 星期五

奇怪的apt-get upgrade

今天重新裝raspbian, 然後想說先更新一下, 結果一打就出現錯誤訊息. 囧


pi@raspberrypi:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vlc-bin : Depends: libvlc-bin (= 3.0.8-0+deb10u1+rpt1) but 3.0.8-0+deb10u1+rpt7 is to be installed
 vlc-plugin-skins2 : Depends: vlc-plugin-qt (= 3.0.8-0+deb10u1+rpt7) but 3.0.8-0+deb10u1+rpt1 is to be installed
E: Broken packages


很奇妙的是, 改用 sudo apt upgrade 似乎就可以了!?
然後再加上 --fix-missing, 就順利更新了

(不知道為什麼  囧)

後來又遇到站台問題, 直接改成NCHC的 (來源: https://www.raspbian.org/RaspbianMirrors
)

sudo nano /etc/apt/sources.list

原本: deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
修改成: deb http://free.nchc.org.tw/raspbian/raspbian/ buster main contrib non-free rpi


沒有留言: