1、備份原始文件
sudo cp /etc/apt/sources.list.d/sources-aliyun-0.list /etc/apt/sources.list.d/sources-aliyun._backup?
2、修改文件並添加源
vi?/etc/apt/sources.list.d/sources-aliyun-0.list?
並將下述內容添加到其後:
#?See?99.com/ubuntu/?bionic?main?restricted deb-src?99.com/ubuntu/?bionic?restricted?multiverse?main?universe?#Added?by?software-properties deb-src?.archive.ubuntu.com/ubuntu/?xenial?main?restricted ##?Major?bug?fix?updates?produced?after?the?final?release?of?the ##?distribution. deb?99.com/ubuntu/?bionic-updates?main?restricted deb-src?99.com/ubuntu/?bionic-updates?restricted?multiverse?main?universe?#Added?by?software-properties #?deb-src?.archive.ubuntu.com/ubuntu/?xenial-updates?main?restricted ##?N.B.?software?from?this?repository?is?ENTIRELY?UNSUPPORTED?by?the?Ubuntu ##?team.?Also,?please?note?that?software?in?universe?WILL?NOT?receive?any ##?review?or?updates?from?the?Ubuntu?security?team. deb?99.com/ubuntu/?bionic?universe #?deb-src?.archive.ubuntu.com/ubuntu/?xenial?universe deb?99.com/ubuntu/?bionic-updates?universe #?deb-src?.archive.ubuntu.com/ubuntu/?xenial-updates?universe ##?N.B.?software?from?this?repository?is?ENTIRELY?UNSUPPORTED?by?the?Ubuntu? ##?team,?and?may?not?be?under?a?free?licence.?Please?satisfy?yourself?as?to? ##?your?rights?to?use?the?software.?Also,?please?note?that?software?in? ##?multiverse?WILL?NOT?receive?any?review?or?updates?from?the?Ubuntu ##?security?team. deb?99.com/ubuntu/?bionic?multiverse #?deb-src?.archive.ubuntu.com/ubuntu/?xenial?multiverse deb?99.com/ubuntu/?bionic-updates?multiverse #?deb-src?.archive.ubuntu.com/ubuntu/?xenial-updates?multiverse ##?N.B.?software?from?this?repository?may?not?have?been?tested?as ##?extensively?as?that?contained?in?the?main?release,?although?it?includes ##?newer?versions?of?some?applications?which?may?provide?useful?features. ##?Also,?please?note?that?software?in?backports?WILL?NOT?receive?any?review ##?or?updates?from?the?Ubuntu?security?team. deb?99.com/ubuntu/?bionic-backports?main?restricted?universe?multiverse deb-src?99.com/ubuntu/?bionic-backports?main?restricted?universe?multiverse?#Added?by?software-properties #?deb-src?.archive.ubuntu.com/ubuntu/?xenial-backports?main?restricted?universe?multiverse ##?Uncomment?the?following?two?lines?to?add?software?from?Canonical's ##?'partner'?repository. ##?This?software?is?not?part?of?Ubuntu,?but?is?offered?by?Canonical?and?the ##?respective?vendors?as?a?service?to?Ubuntu?users. deb?99.com/ubuntu/?bionic-security?main?restricted deb-src?99.com/ubuntu/?bionic-security?restricted?multiverse?main?universe?#Added?by?software-properties #?deb-src?99.com/ubuntu/?bionic-security?universe #?deb-src?99.com/ubuntu/?bionic-security?multiverse deb?/ubuntu?xenial-security?multiverse?
3、更新源
sudo apt-get update
但是報如下錯:
首先是sources-aliyun._backup和/sources-aliyun-0.list放在了同壹個文件夾,於是我將備份文件夾移到文件外,然後再次運行,仍然報錯如下
報錯顯示Key is not abailable
於是通過下述命令進行修復(註意winehq.key不要生成在sources.list.d內):
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key?
然後再次更新源? sudo apt-get update
本次成功,然後再次通過sudo apt install安裝samtools和bcftools,安裝後查看版本已成功更新為1.7版本,然後使用軟件進行分析時也不再報錯。