Lỗi trong Kali Linux Terminal trên Win 10

NgMSon

Well-Known Member
22/03/2017
747
669 bài viết
Lỗi trong Kali Linux Terminal trên Win 10
sonngauvl@DESKTOP-VI0H00L:~$ apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
sonngauvl@DESKTOP-VI0H00L:~$ sudo apt-get update

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for sonngauvl:
Get:1 http://ftp.yzu.edu.tw/Linux/kali kali-rolling InRelease [30.5 kB]
16% [Connecting to ftp.yzu.edu.tw (140.138.144.170)]
Get:2 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 Packages [16.4 MB]
Err:2 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/main amd64 Packages
File has unexpected size (16347697 != 16352848). Mirror sync in progress? [IP: 140.138.144.170 80]
Hashes of expected file:
- Filesize:16352848 [weak]
- SHA256:48a31c7c85884937c86f1f68a88709aae4f48a63398e8285033dffe8d477565a
- SHA1:a23f647d702155d1435b7100f0cbfb09fd2f5eb3 [weak]
- MD5Sum:8dd74af512a3ae0d914ff6032c64dbf4 [weak]
Release file created at: Thu, 30 Aug 2018 12:03:35 +0000
Get:3 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/non-free amd64 Packages [169 kB]
Get:4 http://ftp.yzu.edu.tw/Linux/kali kali-rolling/contrib amd64 Packages [96.5 kB]
Fetched 296 kB in 1min 13s (4,040 B/s)
Reading package lists... Done
E: Failed to fetch http://ftp.yzu.edu.tw/Linux/kali/dists/kali-rolling/main/binary-amd64/Packages.gz File has unexpected size (16347697 != 16352848). Mirror sync in progress? [IP: 140.138.144.170 80]
Hashes of expected file:
- Filesize:16352848 [weak]
- SHA256:48a31c7c85884937c86f1f68a88709aae4f48a63398e8285033dffe8d477565a
- SHA1:a23f647d702155d1435b7100f0cbfb09fd2f5eb3 [weak]
- MD5Sum:8dd74af512a3ae0d914ff6032c64dbf4 [weak]
Release file created at: Thu, 30 Aug 2018 12:03:35 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
sonngauvl@DESKTOP-VI0H00L:~$
sonngauvl@DESKTOP-VI0H00L:~$

Mọi người giúp em với.....
 
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
Ai giúp em với ạ
 
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
Comment
Bạn làm thế này:
Mở file /etc/apt/sources.list

Lưu nội dung của file sources.list ra đâu đó, và thay thế toàn bộ nội dung bằng dòng sau:

Mã:
deb http://http.kali.org/kali kali-rolling main non-free contrib

Save và update lại.
 
Chỉnh sửa lần cuối:
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
Comment
upload_2018-9-1_5-25-25.png

File mặc định đây ạ
 
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
Comment
Bạn sửa nội dung trong file /etc/apt/sources.list và thêm dòng dưới rồi update lại nhé:

Mã:
deb http://mirrors.ocf.berkeley.edu/kali kali-rolling main non-free contrib
 
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
  • Thích
Reactions: NgMSon
Comment
Liên quan tới thằng ftp này thì con Avast bắt được lỗi này "we are safely aborted connection on ftp.yzu.edu.tw because it was infected with HTML:runner-S[Trj]"
 
Mời các bạn tham gia Group WhiteHat để thảo luận và cập nhật tin tức an ninh mạng hàng ngày.
Lưu ý từ WhiteHat: Kiến thức an ninh mạng để phòng chống, không làm điều xấu. Luật pháp liên quan
Comment
Bên trên