当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 8 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 这是怎么回事
帖子发表于 : 2015-07-07 8:23 
头像

注册: 2013-10-27 20:31
帖子: 72
系统: Debian GNU/Linux
送出感谢: 0 次
接收感谢: 0 次
steven@localhost:~$ sudo apt-get update
E: 无法识别在源列表 /etc/apt/sources.list 里,第 1 行中的软件包类别“deb”
E: 无法读取源列表。
steven@localhost:~$


_________________
windows太贵,mac价更高,有了ubuntu,二者皆可抛


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-07 8:24 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
代码:
cat /etc/apt/sources.list


把结果完全复制贴上来。


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-07 8:26 
头像

注册: 2013-10-27 20:31
帖子: 72
系统: Debian GNU/Linux
送出感谢: 0 次
接收感谢: 0 次
vickycq 写道:
代码:
cat /etc/apt/sources.list


把结果完全复制贴上来。

deb http://mirrors.163.com/debian jessie main non-free contrib
deb http://mirrors.163.com/debian jessie-proposed-updates main contrib non-free
deb http://mirrors.163.com/debian-security jessie/updates main contrib non-free
deb-src http://mirrors.163.com/debian jessie main non-free contrib
deb-src http://mirrors.163.com/debian jessie-proposed-updates main contrib non-free
deb-src http://mirrors.163.com/debian-security jessie/updates main contrib non-free
deb http://http.us.debian.org/debian jessie main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free


_________________
windows太贵,mac价更高,有了ubuntu,二者皆可抛


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-07 11:17 

注册: 2009-08-04 16:33
帖子: 16886
送出感谢: 21
接收感谢: 1826
引用:
deb http://mirrors.163.com/debian jessie main non-free contrib
deb http://http.us.debian.org/debian jessie main contrib non-free

重複
改為
# deb http://http.us.debian.org/debian jessie main contrib non-free
引用:
deb http://mirrors.163.com/debian-security jessie/updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free

重複
改為
# deb http://http.us.debian.org/debian jessie main contrib non-free


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-07 13:16 
头像

注册: 2011-03-20 13:12
帖子: 4519
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
(^_^) 写道:
steven@localhost:~$ sudo apt-get update
E: 无法识别在源列表 /etc/apt/sources.list 里,第 1 行中的软件包类别“deb”
E: 无法读取源列表。
steven@localhost:~$


返回第一行有问题,但实际上没问题?倾向于楼主的 sources.list中夹杂了复制粘贴进的特殊符号? :em06

建议楼主先废掉现有的sources.list,然后只用一行试试看。执行:
代码:
su -
mv /etc/apt/sources.list /etc/apt/sources.list.old
echo 'deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free' >> /etc/apt/sources.list
apt-get update


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-15 21:26 

注册: 2007-03-21 12:49
帖子: 25
送出感谢: 0 次
接收感谢: 0 次
vickycq 写道:
代码:
cat /etc/apt/sources.list


把结果完全复制贴上来。


# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.zju.edu.cn/ubuntu/ trusty main restricted
deb-src http://mirrors.zju.edu.cn/ubuntu/ trusty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.zju.edu.cn/ubuntu/ trusty-updates main restricted
deb-src http://mirrors.zju.edu.cn/ubuntu/ trusty-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 http://mirrors.zju.edu.cn/ubuntu/ trusty universe
deb-src http://mirrors.zju.edu.cn/ubuntu/ trusty universe
deb http://mirrors.zju.edu.cn/ubuntu/ trusty-updates universe
deb-src http://mirrors.zju.edu.cn/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
## multiverse 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://mirrors.zju.edu.cn/ubuntu/ trusty-security main restricted
deb-src http://mirrors.zju.edu.cn/ubuntu/ trusty-security main restricted
deb http://mirrors.zju.edu.cn/ubuntu/ trusty-security universe
deb-src http://mirrors.zju.edu.cn/ubuntu/ trusty-security universe

## 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 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 trusty main
# deb-src http://extras.ubuntu.com/ubuntu trusty main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Major bug fix updates produced after the final release of the
## distribution.

## 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.

## 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.

## 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://mirrors.zju.edu.cn/ubuntu/ trusty-backports main restricted universe
deb-src http://mirrors.zju.edu.cn/ubuntu/ trusty-backports main restricted universe


## 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 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.
milo@milo-GA-A55M-DS2:~$



怎么办?


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-15 23:22 

注册: 2015-05-28 18:14
帖子: 22
系统: Ubuntu 15.04
送出感谢: 0 次
接收感谢: 0 次
既然有software-properties-gtk就没必要手工改/etc/apt/sources.list了吧,手工改很容易出错的。


_________________
ubuntu群组列表:
ubuntu1群(已爆满,建议加ubuntu2群): https://telegram.me/joinchat/05a7898401 ... c19838cfb4
ubuntu2群: https://telegram.me/joinchat/05a7898401 ... 2ddf02200e
下游发行版:
mint群: https://telegram.me/joinchat/05a7898401 ... 1d4718b266


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 这是怎么回事
帖子发表于 : 2015-07-16 7:24 

注册: 2009-08-04 16:33
帖子: 16886
送出感谢: 21
接收感谢: 1826
引用:
http://forum.ubuntu.org.cn/viewtopic.php?p=3138489#p3138489
cat /etc/apt/sources.list

抓錯

1. 備存
sudo cp -af /etc/apt/sources.list /etc/apt/sources.list.backup
1-1. 要恢復
sudo cp -af /etc/apt/sources.list.backup /etc/apt/sources.list
2. gksudo gedit /etc/apt/sources.list
第一次 使用 gksudo 需要先安裝 gksu 套件
把內容 全部清空
儲存
3. sudo apt-get update
如果還有錯誤訊息 複製 貼上來
3-1. 如果還有錯誤訊息
sudo ls -al /etc/apt/sources.list.d
把結果 複製 貼上來
3-2. 如果沒有錯誤訊息
請再貼文 繼續下個抓錯程序


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 8 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译