[Question] không dùng được apt-get install |
18/03/2010 22:51:42 (+0700) | #1 | 207302 |
thanhtamntp
Member
|
0 |
|
|
Joined: 08/12/2008 10:50:06
Messages: 247
Offline
|
|
máy lap mình mới cài ubuntu, không hiểu sao muốn cài cái gì dùng apt-get thấy đều có lỗi kiểu như sau
thanhtam@thanhtam-laptop:~$ sudo apt-get install pidgin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package pidgin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libpurple-bin libpurple0
E: Package pidgin has no installation candidat
nhưng khi mang máy tới lớp thì lại dùng được apt-get install.
mạng ở nhà là fpt, mạng ở lớp có 2 line 1fpt, 1vnpt. lúc apt-get install không để ý là mạng gì.
không biết có phải do mạng hay cái gì khác. hiện dùng dns của google.
tks. |
|
|
|
|
[Question] không dùng được apt-get install |
19/03/2010 07:32:31 (+0700) | #2 | 207322 |
|
quanta
Moderator
|
Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
|
|
Bạn có biết cơ chế hoạt động của apt-get nó lấy packages từ đâu về nó cài không, và cái gì chỉ định nơi lấy đó? |
|
Let's build on a great foundation! |
|
|
|
[Question] không dùng được apt-get install |
19/03/2010 10:21:06 (+0700) | #3 | 207339 |
thanhtamntp
Member
|
0 |
|
|
Joined: 08/12/2008 10:50:06
Messages: 247
Offline
|
|
nó lấy từ các server trên internet, sources.lst chỉ định.
nếu anh nghĩ do sources.lst thì em thấy hơi lạ, vẫn cái sources.lst nhưng chỗ apt-get được chỗ không.
kể cả lúc em add thêm của hanoilug, dùng mạng ở nhà vẫn vậy.
tks |
|
|
|
|
[Question] không dùng được apt-get install |
19/03/2010 10:51:42 (+0700) | #4 | 207342 |
|
quanta
Moderator
|
Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
|
|
thanhtamntp wrote:
nó lấy từ các server trên internet, sources.lst chỉ định.
nếu anh nghĩ do sources.lst thì em thấy hơi lạ, vẫn cái sources.lst nhưng chỗ apt-get được chỗ không.
kể cả lúc em add thêm của hanoilug, dùng mạng ở nhà vẫn vậy.
tks
- Thử thảy cái sources.list đó lên xem
- Khi bạn mang tới lớp vẫn thử với gói pidgin đó?
- Thử apt-get update chưa? |
|
Let's build on a great foundation! |
|
|
|
[Question] không dùng được apt-get install |
19/03/2010 11:26:26 (+0700) | #5 | 207343 |
thanhtamntp
Member
|
0 |
|
|
Joined: 08/12/2008 10:50:06
Messages: 247
Offline
|
|
1. cái sources.list
## Hanoilug
deb http://virror.hanoilug.org/ubuntu/archive karmic main restricted universe multiverse
deb http://virror.hanoilug.org/ubuntu/archive karmic-updates main restricted universe multiverse
#deb http://virror.hanoilug.org/ubuntu/archive karmic-backports main restricted universe multiverse
deb http://virror.hanoilug.org/ubuntu/security karmic-security main restricted universe multiverse
#deb http://virror.hanoilug.org/ubuntu/medibuntu karmic free non-free
deb http://virror.hanoilug.org/ubuntu/canonical karmic partner
deb http://virror.hanoilug.org/ubuntu/hanoilug karmic contrib import
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release i386 (20091028.5)]/ karmic main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://vn.archive.ubuntu.com/ubuntu/ karmic main restricted
deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://vn.archive.ubuntu.com/ubuntu/ karmic-updates main restricted
deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic-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://vn.archive.ubuntu.com/ubuntu/ karmic universe
deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic universe
deb http://vn.archive.ubuntu.com/ubuntu/ karmic-updates universe
deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic-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 http://vn.archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic multiverse
deb http://vn.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://vn.archive.ubuntu.com/ubuntu/ karmic-backports main restricted universe multiverse
# deb-src http://vn.archive.ubuntu.com/ubuntu/ karmic-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 http://archive.canonical.com/ubuntu karmic partner
# deb-src http://archive.canonical.com/ubuntu karmic partner
deb http://security.ubuntu.com/ubuntu karmic-security main restricted
deb-src http://security.ubuntu.com/ubuntu karmic-security main restricted
deb http://security.ubuntu.com/ubuntu karmic-security universe
deb-src http://security.ubuntu.com/ubuntu karmic-security universe
deb http://security.ubuntu.com/ubuntu karmic-security multiverse
deb-src http://security.ubuntu.com/ubuntu karmic-security multiverse
khi ở lớp ko có đoạn hanoilug, về nhà thấy ko được nên em thêm vào.
2. ở nhà em apt-get install vim, ssh ko được cả update luôn.
đến lớp thì mọi thứ okie.
tks |
|
|
|
|
[Question] không dùng được apt-get install |
19/03/2010 11:36:29 (+0700) | #6 | 207345 |
|
quanta
Moderator
|
Joined: 28/07/2006 14:44:21
Messages: 7265
Location: $ locate `whoami`
Offline
|
|
thanhtamntp wrote:
2. ở nhà em apt-get install vim, ssh ko được cả update luôn.
đến lớp thì mọi thứ okie.
Bạn cho xem thông tin khi chạy apt-get update? |
|
Let's build on a great foundation! |
|
|
|
[Question] không dùng được apt-get install |
19/03/2010 23:22:28 (+0700) | #7 | 207386 |
thanhtamntp
Member
|
0 |
|
|
Joined: 08/12/2008 10:50:06
Messages: 247
Offline
|
|
em mới thử lại thì nó ra thế này
thanhtam@thanhtam-laptop:~$ sudo apt-get update
Get:1 http://dl.google.com stable Release.gpg [189B]
Get:2 http://virror.hanoilug.org karmic Release.gpg [189B]
Ign http://virror.hanoilug.org karmic/main Translation-en_US
Ign http://virror.hanoilug.org karmic/restricted Translation-en_US
Ign http://virror.hanoilug.org karmic/universe Translation-en_US
Ign http://virror.hanoilug.org karmic/multiverse Translation-en_US
Get:3 http://virror.hanoilug.org karmic-updates Release.gpg [189B]
Ign http://virror.hanoilug.org karmic-updates/main Translation-en_US
Ign http://virror.hanoilug.org karmic-updates/restricted Translation-en_US
Ign http://virror.hanoilug.org karmic-updates/universe Translation-en_US
Ign http://virror.hanoilug.org karmic-updates/multiverse Translation-en_US
Get:4 http://virror.hanoilug.org karmic-security Release.gpg [189B]
Ign http://virror.hanoilug.org karmic-security/main Translation-en_US
Ign http://virror.hanoilug.org karmic-security/restricted Translation-en_US
Ign http://virror.hanoilug.org karmic-security/universe Translation-en_US
Ign http://virror.hanoilug.org karmic-security/multiverse Translation-en_US
Get:5 http://virror.hanoilug.org karmic Release.gpg [189B]
Ign http://virror.hanoilug.org karmic/partner Translation-en_US
Get:6 http://virror.hanoilug.org karmic Release.gpg [197B]
Ign http://virror.hanoilug.org karmic/contrib Translation-en_US
Ign http://virror.hanoilug.org karmic/import Translation-en_US
Get:7 http://virror.hanoilug.org karmic Release [65.9kB]
78% [7 Release 51839/65.9kB 78%] [Connecting to vn.archive.ubuntu.com (91.189.88.30)] [Connecting to security.ubuntu.com (91.189.88.31)] [Waiting for header^C
thanhtam@thanhtam-laptop:~$ sudo apt-get install ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ssh is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
openssh-client ssh-askpass-gnome
E: Package ssh has no installation candidate
thanhtam@thanhtam-laptop:~$ sudo apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package vim is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package vim has no installation candidate
thanhtam@thanhtam-laptop:~$
thử với dns của fpt và google vẫn bị.
tks |
|
|
|
|
[Question] không dùng được apt-get install |
20/03/2010 02:41:12 (+0700) | #8 | 207389 |
Crunch
Member
|
0 |
|
|
Joined: 02/07/2008 03:41:11
Messages: 50
Offline
|
|
Tôi nghĩ là do cái repo bạn dùng có vấn đề thôi.
Nên chuyển sang một repo tin cậy hơn để lần sau ko vướng phải những vấn đề như thế này.
Trước hết disable cái file sources.list mặc định đi
sudo mv /etc/apt/sources.list{,.bak}
Sau đó sẽ dùng 1 repo tốt. Ở đây tôi lấy ví dụ repo của osuosl
Tạo file osuosl.list có nội dung
deb http://ubuntu.osuosl.org/ubuntu karmic main restricted universe multiverse
# deb-src http://ubuntu.osuosl.org/ubuntu karmic main restricted universe multiverse
deb http://ubuntu.osuosl.org/ubuntu karmic-security main restricted universe multiverse
# deb-src http://ubuntu.osuosl.org/ubuntu karmic-security main restricted universe multiverse
deb http://ubuntu.osuosl.org/ubuntu karmic-updates main restricted universe multiverse
# deb-src http://ubuntu.osuosl.org/ubuntu karmic-updates main restricted universe multiverse
Cho nó thành source mới
sudo mv osuosl.list /etc/apt/sources.list.d/
Update danh sách các gói rồi sau đó cài đặt bình thường
sudo aptitude update
sudo aptitude install pidgin |
|
|
|
|
[Question] không dùng được apt-get install |
20/03/2010 06:49:12 (+0700) | #9 | 207392 |
thanhtamntp
Member
|
0 |
|
|
Joined: 08/12/2008 10:50:06
Messages: 247
Offline
|
|
@Crunh: thanks bác, sau khi dùng cái repo của bác thì okie hết.
nhưng vẫn thắc mắc cùng cái repo cũ mà nó bị vậy, vậy chắc do mạng fpt rồi. vì thử mang đến nhà khác mạng fpt cũng bị vậy. nhưng sao thế nhỉ ? |
|
|
Users currently in here |
1 Anonymous
|
|
Powered by JForum - Extended by HVAOnline
hvaonline.net | hvaforum.net | hvazone.net | hvanews.net | vnhacker.org
1999 - 2013 ©
v2012|0504|218|
|
|