软件更新器无法更新

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

软件更新器无法更新

#1

帖子 wisner » 2014-02-28 20:51

想升级到14.04,打开软件更新器后老是提示无法联网,提示软件包系统已损坏,建议禁用第三方软件源,然后运行 apt-get install -f.我系统坏掉了吗?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 软件更新器无法更新

#2

帖子 poloshiao » 2014-02-28 21:24

老是提示无法联网
從終端機
sudo cat /etc/apt/sources.list
sudo ls -al /etc/apt/sources.list.d
把結果直接複製 貼上來
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#3

帖子 wisner » 2014-03-01 19:49

第一个结果:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu trusty restricted multiverse main
deb-src http://archive.ubuntu.com/ubuntu trusty restricted multiverse universe main #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu trusty-updates restricted multiverse main
deb-src http://archive.ubuntu.com/ubuntu trusty-updates restricted multiverse universe main #Added by software-properties

## 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 http://archive.ubuntu.com/ubuntu trusty universe
deb http://archive.ubuntu.com/ubuntu trusty-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
## WILL NOT receive any review or updates from the Ubuntu
## security team.

## 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 http://archive.ubuntu.com/ubuntu trusty-security restricted multiverse main
deb-src http://archive.ubuntu.com/ubuntu trusty-security restricted multiverse universe main #Added by software-properties
deb http://archive.ubuntu.com/ubuntu trusty-security universe

## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
# deb http://extras.ubuntu.com/ubuntu quantal main
# deb-src http://extras.ubuntu.com/ubuntu quantal main
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#4

帖子 wisner » 2014-03-01 19:51

第二个结果
总用量 408
drwxr-xr-x 2 root root 12288 2月 28 21:55 .
drwxr-xr-x 6 root root 4096 2月 14 21:01 ..
-rw-r--r-- 1 root root 70 2月 27 23:38 bitdefender.list
-rw-r--r-- 1 root root 70 2月 28 21:55 bitdefender.list.distUpgrade
-rw-r--r-- 1 root root 70 2月 27 23:38 bitdefender.list.save
-rw-r--r-- 1 root root 152 2月 27 23:38 caffeine-developers-ppa-raring.list
-rw-r--r-- 1 root root 152 2月 28 21:55 caffeine-developers-ppa-raring.list.distUpgrade
-rw-r--r-- 1 root root 152 2月 27 23:38 caffeine-developers-ppa-raring.list.save
-rw-r--r-- 1 root root 150 2月 27 23:38 caffeine-developers-ppa-saucy.list
-rw-r--r-- 1 root root 150 2月 28 21:55 caffeine-developers-ppa-saucy.list.distUpgrade
-rw-r--r-- 1 root root 150 2月 27 23:38 caffeine-developers-ppa-saucy.list.save
-rw-r--r-- 1 root root 142 2月 27 23:38 freetuxtv-freetuxtv-saucy.list
-rw-r--r-- 1 root root 142 2月 28 21:55 freetuxtv-freetuxtv-saucy.list.distUpgrade
-rw-r--r-- 1 root root 142 2月 27 23:38 freetuxtv-freetuxtv-saucy.list.save
-rw-r--r-- 1 root root 148 2月 27 23:38 gnome3-team-gnome3-next-saucy.list
-rw-r--r-- 1 root root 148 2月 28 21:55 gnome3-team-gnome3-next-saucy.list.distUpgrade
-rw-r--r-- 1 root root 148 2月 27 23:38 gnome3-team-gnome3-next-saucy.list.save
-rw-r--r-- 1 root root 192 2月 14 21:01 gnome3-team-gnome3-raring.list
-rw-r--r-- 1 root root 192 2月 28 21:55 gnome3-team-gnome3-raring.list.distUpgrade
-rw-r--r-- 1 root root 192 2月 14 21:01 gnome3-team-gnome3-raring.list.save
-rw-r--r-- 1 root root 72 2月 27 23:38 gnome3-team-gnome3-saucy.list
-rw-r--r-- 1 root root 72 2月 28 21:55 gnome3-team-gnome3-saucy.list.distUpgrade
-rw-r--r-- 1 root root 72 2月 27 23:38 gnome3-team-gnome3-saucy.list.save
-rw-r--r-- 1 root root 154 2月 27 23:38 gnome3-team-gnome3-staging-saucy.list
-rw-r--r-- 1 root root 154 2月 28 21:55 gnome3-team-gnome3-staging-saucy.list.distUpgrade
-rw-r--r-- 1 root root 154 2月 27 23:38 gnome3-team-gnome3-staging-saucy.list.save
-rw-r--r-- 1 root root 126 2月 14 21:01 google-earth.list
-rw-r--r-- 1 root root 126 2月 28 21:55 google-earth.list.distUpgrade
-rw-r--r-- 1 root root 126 2月 14 21:01 google-earth.list.save
-rw-r--r-- 1 root root 131 2月 14 21:01 happyaron-amule-dlp-precise.list
-rw-r--r-- 1 root root 131 2月 28 21:55 happyaron-amule-dlp-precise.list.distUpgrade
-rw-r--r-- 1 root root 131 2月 14 21:01 happyaron-amule-dlp-precise.list.save
-rw-r--r-- 1 root root 165 10月 2 15:25 jitsi.list.distUpgrade
-rw-r--r-- 1 root root 165 10月 2 15:12 jitsi.list.save
-rw-r--r-- 1 root root 140 2月 27 23:38 lainme-pidgin-lwqq-saucy.list
-rw-r--r-- 1 root root 140 2月 28 21:55 lainme-pidgin-lwqq-saucy.list.distUpgrade
-rw-r--r-- 1 root root 140 2月 27 23:38 lainme-pidgin-lwqq-saucy.list.save
-rw-r--r-- 1 root root 220 2月 14 21:01 libreoffice-libreoffice-4-1-precise.list
-rw-r--r-- 1 root root 220 2月 28 21:55 libreoffice-libreoffice-4-1-precise.list.distUpgrade
-rw-r--r-- 1 root root 220 2月 14 21:01 libreoffice-libreoffice-4-1-precise.list.save
-rw-r--r-- 1 root root 174 2月 27 23:38 libreoffice-libreoffice-prereleases-saucy.list
-rw-r--r-- 1 root root 174 2月 28 21:55 libreoffice-libreoffice-prereleases-saucy.list.distUpgrade
-rw-r--r-- 1 root root 174 2月 27 23:38 libreoffice-libreoffice-prereleases-saucy.list.save
-rw-r--r-- 1 root root 172 2月 27 23:38 maarten-baert-simplescreenrecorder-saucy.list
-rw-r--r-- 1 root root 172 2月 28 21:55 maarten-baert-simplescreenrecorder-saucy.list.distUpgrade
-rw-r--r-- 1 root root 172 2月 27 23:38 maarten-baert-simplescreenrecorder-saucy.list.save
-rw-r--r-- 1 root root 136 2月 27 23:38 mc3man-sacy-tests-saucy.list
-rw-r--r-- 1 root root 136 2月 28 21:55 mc3man-sacy-tests-saucy.list.distUpgrade
-rw-r--r-- 1 root root 136 2月 27 23:38 mc3man-sacy-tests-saucy.list.save
-rw-r--r-- 1 root root 194 2月 14 21:01 noobslab-deepin-sc-raring.list
-rw-r--r-- 1 root root 194 2月 28 21:55 noobslab-deepin-sc-raring.list.distUpgrade
-rw-r--r-- 1 root root 194 2月 14 21:01 noobslab-deepin-sc-raring.list.save
-rw-r--r-- 1 root root 418 2月 27 23:38 opera.list
-rw-r--r-- 1 root root 418 2月 28 21:55 opera.list.distUpgrade
-rw-r--r-- 1 root root 416 2月 27 23:38 opera.list.save
-rw-r--r-- 1 root root 200 2月 14 21:01 pcf-miro-releases-precise.list
-rw-r--r-- 1 root root 200 2月 28 21:55 pcf-miro-releases-precise.list.distUpgrade
-rw-r--r-- 1 root root 200 2月 14 21:01 pcf-miro-releases-precise.list.save
-rw-r--r-- 1 root root 0 12月 29 21:27 peterlevi-ppa-saucy.list
-rw-r--r-- 1 root root 0 12月 29 21:27 peterlevi-ppa-saucy.list.save
-rw-r--r-- 1 root root 56 2月 27 23:38 playdeb.list
-rw-r--r-- 1 root root 56 2月 28 21:55 playdeb.list.distUpgrade
-rw-r--r-- 1 root root 56 2月 27 23:38 playdeb.list.save
-rw-r--r-- 1 root root 206 2月 14 21:01 savoirfairelinux-ppa-precise.list
-rw-r--r-- 1 root root 206 2月 28 21:55 savoirfairelinux-ppa-precise.list.distUpgrade
-rw-r--r-- 1 root root 206 2月 14 21:01 savoirfairelinux-ppa-precise.list.save
-rw-r--r-- 1 root root 170 2月 14 21:01 steam.list
-rw-r--r-- 1 root root 170 2月 28 21:55 steam.list.distUpgrade
-rw-r--r-- 1 root root 170 2月 14 21:01 steam.list.save
-rw-r--r-- 1 root root 204 2月 14 21:01 stella-kobe.list
-rw-r--r-- 1 root root 204 2月 28 21:55 stella-kobe.list.distUpgrade
-rw-r--r-- 1 root root 204 2月 14 21:01 stella-kobe.list.save
-rw-r--r-- 1 root root 130 2月 27 23:38 team-xbmc-ppa-saucy.list
-rw-r--r-- 1 root root 130 2月 28 21:55 team-xbmc-ppa-saucy.list.distUpgrade
-rw-r--r-- 1 root root 130 2月 27 23:38 team-xbmc-ppa-saucy.list.save
-rw-r--r-- 1 root root 184 2月 14 21:01 tualatrix-ppa-raring.list
-rw-r--r-- 1 root root 184 2月 28 21:55 tualatrix-ppa-raring.list.distUpgrade
-rw-r--r-- 1 root root 184 2月 14 21:01 tualatrix-ppa-raring.list.save
-rw-r--r-- 1 root root 204 2月 14 21:01 ubuntu-sdk-team-ppa-precise.list
-rw-r--r-- 1 root root 204 2月 28 21:55 ubuntu-sdk-team-ppa-precise.list.distUpgrade
-rw-r--r-- 1 root root 204 2月 14 21:01 ubuntu-sdk-team-ppa-precise.list.save
-rw-r--r-- 1 root root 236 2月 14 21:01 ubuntu-touch-coreapps-drivers-daily-precise.list
-rw-r--r-- 1 root root 236 2月 28 21:55 ubuntu-touch-coreapps-drivers-daily-precise.list.distUpgrade
-rw-r--r-- 1 root root 236 2月 14 21:01 ubuntu-touch-coreapps-drivers-daily-precise.list.save
-rw-r--r-- 1 root root 196 2月 14 21:01 ubuntu-wine-ppa-precise.list
-rw-r--r-- 1 root root 196 2月 28 21:55 ubuntu-wine-ppa-precise.list.distUpgrade
-rw-r--r-- 1 root root 196 2月 14 21:01 ubuntu-wine-ppa-precise.list.save
-rw-r--r-- 1 root root 188 2月 14 21:01 venerix-pkg-precise.list
-rw-r--r-- 1 root root 188 2月 28 21:55 venerix-pkg-precise.list.distUpgrade
-rw-r--r-- 1 root root 188 2月 14 21:01 venerix-pkg-precise.list.save
-rw-r--r-- 1 root root 200 2月 14 21:01 videolan-stable-daily-raring.list
-rw-r--r-- 1 root root 200 2月 28 21:55 videolan-stable-daily-raring.list.distUpgrade
-rw-r--r-- 1 root root 200 2月 14 21:01 videolan-stable-daily-raring.list.save
-rw-r--r-- 1 root root 122 2月 27 23:38 wallch-3_-saucy.list
-rw-r--r-- 1 root root 122 2月 28 21:55 wallch-3_-saucy.list.distUpgrade
-rw-r--r-- 1 root root 122 2月 27 23:38 wallch-3_-saucy.list.save
-rw-r--r-- 1 root root 144 2月 27 23:38 wallch-version-3-ppa-saucy.list
-rw-r--r-- 1 root root 144 2月 28 21:55 wallch-version-3-ppa-saucy.list.distUpgrade
-rw-r--r-- 1 root root 144 2月 27 23:38 wallch-version-3-ppa-saucy.list.save
-rw-r--r-- 1 root root 156 2月 14 21:01 weather-indicator-team-ppa-precise.list
-rw-r--r-- 1 root root 156 2月 28 21:55 weather-indicator-team-ppa-precise.list.distUpgrade
-rw-r--r-- 1 root root 156 2月 14 21:01 weather-indicator-team-ppa-precise.list.save
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 软件更新器无法更新

#5

帖子 poloshiao » 2014-03-01 20:22

想升级到14.04
你是從哪個版本升級到 14.04 ?
目的
要更改 /etc/apt/sources.list
上次由 poloshiao 在 2014-03-01 21:34,总共编辑 1 次。
头像
photor
论坛版主
帖子: 11004
注册时间: 2008-04-26 12:41

Re: 软件更新器无法更新

#6

帖子 photor » 2014-03-01 20:28

wisner 写了:想升级到14.04,打开软件更新器后老是提示无法联网,提示软件包系统已损坏,建议禁用第三方软件源,然后运行 apt-get install -f.我系统坏掉了吗?
sudo apt-get install -f
这个命令试过了没有?出现什么提示信息?
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#7

帖子 wisner » 2014-03-02 12:34

那个命令试过了。昨天在升级的过程中电脑死机,我现在又重新回到了12.04,悲剧啊
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 软件更新器无法更新

#8

帖子 poloshiao » 2014-03-02 12:43

我现在又重新回到了12.04
你原本是 Ubuntu 12.04 LTS 要升級到 Ubuntu 14.04 LTS ?
還是全新安裝 Ubuntu 12.04 LTS ?
头像
b33e
帖子: 3874
注册时间: 2011-06-07 14:20

Re: 软件更新器无法更新

#9

帖子 b33e » 2014-03-02 12:51

以前的版本是什么?系统升级的版本跨度不要太大哦。
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#10

帖子 wisner » 2014-03-02 14:49

我原来是12.04,升级到了13.10.昨天晚上升级14.04失败,今天开机进不了系统。我电脑里有恢复工具,又恢复到了12.04
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#11

帖子 wisner » 2014-03-02 14:50

幸亏没什么重要文件,不然就惨了
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#12

帖子 wisner » 2014-03-02 15:01

我都想回windows了
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 软件更新器无法更新

#13

帖子 poloshiao » 2014-03-02 17:54

我原来是12.04,升级到了13.10.昨天晚上升级14.04失败,今天开机进不了系统。我电脑里有恢复工具,又恢复到了12.04
因爲 12.04 與 14.04 都是 LTS 版本 可以直接從 12.04 升級到 14.04
https://help.ubuntu.com/community/Upgra ... ade_policy
Prompt=lts will make sure you upgrade from LTS to LTS.

動手前
1. 先 備存 現有作業系統
2. 將 第三方软件源 (包含 PPA) 移到備存目錄 ~/sources.list.d
sudo mv /etc/apt/sources.list.d ~/
3. 按下 alt + F2
輸入 gksudo gedit /etc/update-manager/release-upgrades
找到最下面一行
Prompt=lts
參閱
https://help.ubuntu.com/community/Upgra ... ade_policy
3-1. 如果你是第一次使用 gksudo
先安裝 gksu 套件
sudo apt-get install gksu
4. 更新你的軟體來源明細
sudo apt-get update
5. 把你已安裝套件 更新到最新版
sudo apt-get upgrade
上面這個指令 如果碰到 相依套件不滿足 會放棄更新
6. 把你已安裝套件 更新到最新版 (這是選項 是否執行 由你決定)
sudo apt-get dist-upgrade
上面這個指令 如果碰到 相依套件不滿足
會強制更新 儘可能 下載需要滿足相依條件的套件 移除不滿足條件的套件
所以有風險 有可能失敗 所以這個是 選項
7. http://manpages.ubuntu.com/manpages/pre ... ger.8.html
sudo update-manager -d
開始升級程序
注意 因爲 Ubuntu 14.04 LTS 還不是 穩定版 所以加 -d 參數
-d, --devel-release
Check if upgrading to the latest devel release is possible
8-1. 參見
https://help.ubuntu.com/community/Upgra ... t_releases
Upgrading to development releases
Desktop / GUI Upgrade
9. 升級完畢 重新開機
10. 預祝你 升級順利
11. 開機 立刻備存一份起來
viewtopic.php?p=3064508#p3064508
建议禁用第三方软件源
12. 補充說明
一般升級失敗 最大可能原因之一 就是包含 第三方軟體來源套件升級
因爲 第三方軟體來源套件 並不一定隨着 Ubuntu 的腳步 同步升級
導致 第三方軟體來源套件升級 常常因爲 相依套件問題 而升級失敗
拖累了 整個升級程序
因爲不知 升級程序 進行到哪個步驟 所以很難中途繼續補救
12. sudo mv /etc/apt/sources.list.d ~/
這個指令 就是 移除 第三方軟體來源套件庫 到家目錄備存
已經不會影響升級
等升級完畢 有需要時 再手動 一個一個 加回 第三方軟體來源套件庫
但是 要記得
12-1. 把版本改爲 trusty
12-2. 同時要確認該 第三方軟體來源的 子資料夾 trusty 是否已經建立 (這個也是 爲何要把 第三方軟體來源套件庫 移除的原因)

13. 一面進行升級程序
一面筆記
順利升級後
整理一下筆記 貼上來 分享
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#14

帖子 wisner » 2014-03-02 19:19

我原来安装了Gnome 3.10, 又安装了许多gnome 软件,不知道是不是这个原因导致系统变慢。我选的从主服务器下载,这也应该是升级失败的原因。我这次先升级到14.04再安装软件
头像
wisner
帖子: 216
注册时间: 2013-08-27 21:27

Re: 软件更新器无法更新

#15

帖子 wisner » 2014-03-02 21:51

我又升级到了13.10.不过这次的13.10怎么和上次的不一样?工作区不在右边,还在左边。这次是从12.10直接升级到13.10,而且软件更新器没有提示发现14.10
回复