作者 主題: apt 問題  (閱讀 3749 次)

0 會員 與 1 訪客 正在閱讀本文。

路人甲

  • 可愛的小學生
  • *
  • 文章數: 27
    • 檢視個人資料
apt 問題
« 於: 2003-06-11 18:29 »
請教各位高手,我參考這篇 想以apt client更新rpm
http://www.study-area.org/tips/security.txt
也找過(很多非英文看不懂,有英文的也看到想吐)
http://www.google.com.tw/search?q=%22could+not+open+RPM+package+list+file%22+%2C+apt&ie=UTF-8&oe=UTF-8&hl=zh-TW&btnG=Google+%E6%90%9C%E5%B0%8B&lr=
還是不能解決以下問題,請大家幫我解惑吧



[root@mrtg apt]# cat sources.list
rpm ftp://linux.nctu.edu.tw/dists/redhat/apt i386 redhat-7.3-updates
rpm-src ftp://linux.nctu.edu.tw/dists/redhat/apt i386 redhat-7.3-updates

[root@mrtg etc]# apt-get update
Err ftp://linux.nctu.edu.tw i386 release
  PASS failed, server said: You are already logged in!
Err ftp://linux.nctu.edu.tw i386/redhat-7.3-updates pkglist
  PASS failed, server said: You are already logged in!
Err ftp://linux.nctu.edu.tw i386/redhat-7.3-updates release
  PASS failed, server said: You are already logged in!
Err ftp://linux.nctu.edu.tw i386/redhat-7.3-updates srclist
  PASS failed, server said: You are already logged in!
Failed to fetch ftp://linux.nctu.edu.tw/dists/redhat/apt/i386/base/release  PASS
 failed, server said: You are already logged in!
Failed to fetch ftp://linux.nctu.edu.tw/dists/redhat/apt/i386/base/pkglist.redha
t-7.3-updates  PASS failed, server said: You are already logged in!
Failed to fetch ftp://linux.nctu.edu.tw/dists/redhat/apt/i386/base/release.redha
t-7.3-updates  PASS failed, server said: You are already logged in!
Failed to fetch ftp://linux.nctu.edu.tw/dists/redhat/apt/i386/base/srclist.redha
t-7.3-updates  PASS failed, server said: You are already logged in!
Reading Package Lists... Done
Collecting File Provides... Error!
E: could not open RPM package list file /var/state/apt/lists/linux.nctu.edu.tw_d
ists_redhat_apt_i386_base_pkglist.redhat-7.3-updates: (no error)
E: Problem opening /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_
base_pkglist.redhat-7.3-updates
E: The package lists or status file could not be parsed or opened.

[root@mrtg etc]# apt-get check
Reading Package Lists... Done
Collecting File Provides... Error!
E: could not open RPM package list file /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates: (no error)
E: Problem opening /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates
E: The package lists or status file could not be parsed or opened.

[root@mrtg state]# ll
total 8
drwxr-xr-x    3 root     root         4096 Jun 11 12:10 apt
drwxr-xr-x    2 root     root         4096 Apr 24 09:19 aptitude
[root@mrtg state]# ll apt
total 4
drwxr-xr-x    3 root     root         4096 Jun 11 12:35 lists
[root@mrtg state]# ll apt/lists/
total 4
-rw-r-----    1 root     root            0 Jun 11 17:59 lock
drwxr-xr-x    2 root     root         4096 Jun 11 14:45 partial
這裡把lock刪掉再試也不行

[root@mrtg etc]# rpm -qa|grep apt
apt-devel-0.5.4cnc9-1
apt-0.5.4cnc9-1
aptitude-0.2.11.1-4

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17423
    • 檢視個人資料
    • http://www.study-area.org
apt 問題
« 回覆 #1 於: 2003-06-11 20:08 »
啊,再參考:
http://163.19.59.1/~linux/student_samba/apt/apt_server.html
(或用這邊的"搜尋"找 apt)

在上文的最後一段如此說:
    2. 我自己不想架設 apt server,freshrpms.net 又很難連的上去,有沒有其他的 apt server 可供使用?

    答:vi /etc/apt/sources.list 將以下 apt server 加進去即可

    rpm
http://apt.au.freshrpms.net/redhat/9/en i386 os updates

rpm http://ftp-stud.fht-esslingen.de/apt/redhat/9 i386 os updates

rpm http://redhat.usu.edu/mirrors/apt  redhat/9/en/i386 os updates

rpm ftp://ftp.stw-bonn.de/pub/apt redhat/9/en/i386 os updates

rpm ftp://apt-rpm.tuxfamily.org/apt redhat/9/en/i386 os updates[/list]

路人甲

  • 可愛的小學生
  • *
  • 文章數: 27
    • 檢視個人資料
apt 問題
« 回覆 #2 於: 2003-06-12 00:11 »
看到 netman大哥的回應 趕快試試
後來終於可以用了,不過是試了很多遍
發現似乎要正確有效的server才能用(如下),
#rpm ftp://linux.nctu.edu.tw/dists/redhat/apt i386 redhat-7.3-updates
#rpm-src ftp://linux.nctu.edu.tw/dists/redhat/apt i386 redhat-7.3-updates
rpm http://apt.au.freshrpms.net/redhat/7.3/en i386 os updates
#rpm http://ftp-stud.fht-esslingen.de/apt/redhat/7.3 i386 os updates
rpm http://redhat.usu.edu/mirrors/apt redhat/7.3/en/i386 os updates
rpm ftp://ftp.stw-bonn.de/pub/apt redhat/7.3/en/i386 os updates
#rpm ftp://apt-rpm.tuxfamily.org/apt redhat/7.3/en/i386 os updates

如果sources.list有一個server有問題就出現類似以下的錯誤訊息
[root@mrtg apt]# apt-get update
 .
 .
 .
 .
Reading Package Lists... Done
Collecting File Provides... Error!
E: could not open RPM package list file /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates: (no error)
E: Problem opening /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates
E: The package lists or status file could not be parsed or opened.

[root@mrtg apt]# apt-get check
Reading Package Lists... Done
Collecting File Provides... Error!
E: could not open RPM package list file /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates: (no error)
E: Problem opening /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates
E: The package lists or status file could not be parsed or opened.

[root@mrtg apt]# apt-get upgrade
Reading Package Lists... Done
Collecting File Provides... Error!
E: could not open RPM package list file /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates: (no error)
E: Problem opening /var/state/apt/lists/linux.nctu.edu.tw_dists_redhat_apt_i386_base_pkglist.redhat-7.3-updates
E: The package lists or status file could not be parsed or opened.

所以,如果sources.list有一個server掛了或忙碌就無法繼續,是這樣嗎?
國內還有哪些apt server可用,且有redhat 7.3

linuxk

  • 懷疑的國中生
  • **
  • 文章數: 42
    • 檢視個人資料
apt 問題
« 回覆 #3 於: 2004-05-14 16:11 »
我正好在找apt的資料時照著
http://163.19.59.1/~linux/student_samba/apt/apt_server.html
所說的去做   卻發現我也有無法更新清單的問題
我便去/etc/apt目錄下查找每個設定  在/etc/apt/sources.list.d/greysector.list這裡我發現裡頭也有一些站台位置  其中一個是我之前更新mplayer所加上去的  雖然我記得我是加在source.list裡的不知為何移到這  我想問說這裡的清單也會列入更新嗎  那是不是加在source.list跟這都行呢
[因為我更新清單一直過不去 所以我將這裡頭原本多的站台註解起來就可以了  所以有此疑問]

elleryq

  • 鑽研的研究生
  • *****
  • 文章數: 908
  • 性別: 男
    • 檢視個人資料
    • Thinking more...
apt 問題
« 回覆 #4 於: 2004-05-18 13:56 »
http://fedora.us 這邊也有不少可以更新的 server 清單~
Plan your work, then work your plan.
我的首頁:http://blog.elleryq.idv.tw
351899by http://counter.li.org

hsiao_peter

  • 憂鬱的高中生
  • ***
  • 文章數: 106
    • 檢視個人資料
各位大大 請問有沒 for Mandrake 9.0 的sources.list 謝謝