當前位置:編程學習大全網 - 遊戲軟體 - ubuntu 更新源

ubuntu 更新源

當我在進行生物信息學分析的時候,需要使用samtools這個軟件的附帶軟件bcftools來進行文件格式的轉換,首先我通過sudo apt install samtools 安裝了samtools這個軟件,但是當我使用bcftools這個軟件的時候報錯,顯示無法識別的命令,於是我就特地裝了壹遍bcftools,再次運行還是報錯,顯示版本過低,於是我查看samtools和bcftools的版本都很低,都是1.19,而老師課件使用的兩者都是1.7,於是首先我想著,通過sudo apt-get update更新軟件源,當我更新軟件源後,再次重復上述過程安裝二者並使用,但是版本仍未改變,因為我用的是阿裏雲的服務器,於是我想可能是服務器自身的軟件源的問題,於是想著將軟件源更改為ubuntu官方的軟件源,通過

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版本,然後使用軟件進行分析時也不再報錯。

  • 上一篇:吉他新手如何自學?
  • 下一篇:簡述體系結構在劃分層次時遵循的原則
  • copyright 2024編程學習大全網