Hưỡng dẫn sửa lỗi E: Unable to locate package - apt-get install error trong ubuntu

test@test-Veriton-S661:~$ sudo apt-get install git

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package git


To fix this, you probably just need to update the apt-get list.



test@test-Veriton-S661:~$ sudo apt-get update

Get:1 http://au.archive.ubuntu.com maverick Release.gpg [198B]

Ign http://au.archive.ubuntu.com/ubuntu/ maverick/main Translation-en

Get:2 http://au.archive.ubuntu.com/ubuntu/ maverick/main Translation-en_AU [1,813B]

Ign http://au.archive.ubuntu.com/ubuntu/ maverick/multiverse Translation-en

.

.

Then run the 'apt-get install' again to install the package that you want.


hoặc bạn có thể chạy lệnh:

Mã:

sudo apt-get update && sudo apt-get upgrade

Mã:


sudo apt-get install -f


Mã:


sudo dpkg --configure -a

Chúc bạn thành công!
Reactions

Post a Comment

0 Comments