openSUSE配置軟件源和多媒體解碼器


轉自 https://forum.suse.org.cn/t/topic/12342/2

首先打開終端進入管理員身份:

對於 openSUSE Leap 15.1:

第一步:輸入 zypper mr -da 回車

第二步:依次輸入以下命令分別回車:

sudo zypper ar -fcg https://mirrors.tuna.tsinghua.edu.cn/opensuse/distribution/leap/15.1/repo/oss 10 TUNA:15.1:OSS
sudo zypper ar -fcg https://mirrors.tuna.tsinghua.edu.cn/opensuse/distribution/leap/15.1/repo/non-oss TUNA:15.1:NON-OSS
sudo zypper ar -fcg https://mirrors.tuna.tsinghua.edu.cn/opensuse/update/leap/15.1/oss TUNA:15.1:UPDATE-OSS
sudo zypper ar -fcg https://mirrors.tuna.tsinghua.edu.cn/opensuse/update/leap/15.1/non-oss 1 TUNA:15.1:UPDATE-NON-OSS
sudo zypper ar -fcg https://mirrors.tuna.tsinghua.edu.cn/packman/suse/openSUSE_Leap_15.1/ 6 TUNA:15.1:PACKMAN

第三步:輸入 zypper ref 回車后等待刷新軟件源完成。

第四步:輸入 zypper up 回車開始更新系統。

第五步:重啟系統,在輸入

zypper install --allow-vendor-change ffmpeg lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libavdevice56 libavdevice58 libdvdcss2 vlc-codecs

回車后確認安裝按下 Y 即可開始。安裝完后任何音樂和視頻格式都可以播放了。

對於 openSUSE tumbleweed:

風滾草分支不需要修改軟件源,但是要留神:如果使用 U 盤安裝 openSUSE 風滾草,有可能默認情況下會把你的 U 盤作為軟件倉庫,要禁用。搜索 yast 管理器打開后進入:軟件源,找到 u 盤 cdrom 那一行,把他禁用,再確定即可。其他的不要去改。接着添加 packman 國內源:

sudo zypper ar -fcg https://mirrors.tuna.tsinghua.edu.cn/packman/suse/openSUSE_Tumbleweed/  TUNA:PACKMAN

或者使用aliyun的源,速度可能會有所提升

sudo zypper ar -fcg https://mirrors.aliyun.com/packman/openSUSE_Tumbleweed/  aliyun:PACKMAN

接着 zypper ref 最后 zypper dup 即可開始更新系統。

更新完后也是一樣:
zypper install --allow-vendor-change ffmpeg lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libavdevice56 libavdevice58 libdvdcss2 vlc-codecs

然后就可以看各種視頻格式了。

因為風滾草特殊性,不要去執行 zypper up,而是 zypper dup 來更新,以免出現錯誤。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM