sudo nano /etc/apt/sources.list
ادرس های قبلی رو غیرفعال کن و جدیدها رو قرار بده
cat /etc/apt/sources.list
symon@debian:~$ cat /etc/apt/sources.list
##deb cdrom:[Debian GNU/Linux 9.3.0 _Stretch_ - Official amd64 DVD Binary-1 20171209-12:11]/
#stretch contrib main
# Line commented out by installer because it failed to verify:
# Line commented out by installer because it failed to verify:
# Add Me
#deb http://http.us.debian.org/debian/ stable main contrib non-free
#-------------------------------------------------------------------------------------------#
#------------------------------------------------------------------------------#
# OFFICIAL DEBIAN REPOS
#------------------------------------------------------------------------------#
###### Debian Main Repos
deb http://deb.debian.org/debian/ stable main contrib non-free
deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main
واینم خروجی apt updatesymon@debian:~$ sudo apt update
Ign:2 http://deb.debian.org/debian stable InRelease
Get:1 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Get:3 http://deb.debian.org/debian stable-updates InRelease [91.0 kB]
Err:3 http://deb.debian.org/debian stable-updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Err:1 http://ftp.debian.org/debian stretch-backports InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
Get:4 http://deb.debian.org/debian-security stable/updates InRelease [63.0 kB]
Err:4 http://deb.debian.org/debian-security stable/updates InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
Get:5 http://deb.debian.org/debian stable Release [118 kB]
Get:6 http://deb.debian.org/debian stable Release.gpg [2,434 B]
Ign:6 http://deb.debian.org/debian stable Release.gpg
Reading package lists... Done
W: GPG error: http://deb.debian.org/debian stable-updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
E: The repository 'http://deb.debian.org/debian stable-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://ftp.debian.org/debian stretch-backports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010
E: The repository 'http://ftp.debian.org/debian stretch-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian-security stable/updates InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9D6D8F6BC857C906 NO_PUBKEY 8B48AD6246925553
E: The repository 'http://deb.debian.org/debian-security stable/updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: GPG error: http://deb.debian.org/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://deb.debian.org/debian stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
اگر در مورد کلید های دیگه ای باز هم خطا داد اونا رو هم به همین ترتیب اضافه کنین
symon@debian:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
Executing: /tmp/apt-key-gpghome.9QKwa9KDvJ/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 8B48AD6246925553
gpg: key 8B48AD6246925553: public key "[User ID not found]" imported
gpg: Total number processed: 1
gpg: imported: 1
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
کلا این کل خروجی هست وتغییری هم نکرد(بنده توزیع دبیان استیبل رو دارم)sudo apt-key update
symon@debian:~$ sudo apt-key update
Warning: 'apt-key update' is deprecated and should not be used anymore!
Note: In your distribution this command is a no-op and can therefore be removed safely.
واینم apt updatesymon@debian:~$ sudo apt update
Ign:1 http://http.us.debian.org/debian stable InRelease
Get:2 http://http.us.debian.org/debian stable Release [118 kB]
Get:3 http://http.us.debian.org/debian stable Release.gpg [2,434 B]
Ign:3 http://http.us.debian.org/debian stable Release.gpg
Reading package lists... Done
W: GPG error: http://http.us.debian.org/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://http.us.debian.org/debian stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
sudo mv /etc/apt/trusted.gpg /etc/apt/trusted.gpg.bak
حالا apt update رو اجرا کنین
symon@debian:~$ sudo apt update
Ign:1 http://http.us.debian.org/debian stable InRelease
Get:2 http://http.us.debian.org/debian stable Release [118 kB]
Get:3 http://http.us.debian.org/debian stable Release.gpg [2,434 B]
Get:4 http://http.us.debian.org/debian stable/main amd64 Packages [7,123 kB]
Get:5 http://http.us.debian.org/debian stable/main Translation-en [5,393 kB]
Get:6 http://http.us.debian.org/debian stable/main amd64 DEP-11 Metadata [3,066 kB]
Get:7 http://http.us.debian.org/debian stable/main DEP-11 64x64 Icons [6,804 kB]
Get:8 http://http.us.debian.org/debian stable/main DEP-11 128x128 Icons [15.8 MB]
Get:9 http://http.us.debian.org/debian stable/contrib amd64 Packages [50.9 kB]
Get:10 http://http.us.debian.org/debian stable/contrib Translation-en [45.9 kB]
Get:11 http://http.us.debian.org/debian stable/contrib amd64 DEP-11 Metadata [7,308 B]
Get:12 http://http.us.debian.org/debian stable/contrib DEP-11 64x64 Icons [100 kB]
Get:13 http://http.us.debian.org/debian stable/contrib DEP-11 128x128 Icons [254 kB]
Get:14 http://http.us.debian.org/debian stable/non-free amd64 Packages [78.0 kB]
Get:15 http://http.us.debian.org/debian stable/non-free Translation-en [79.2 kB]
Get:16 http://http.us.debian.org/debian stable/non-free amd64 DEP-11 Metadata [7,180 B]
Get:17 http://http.us.debian.org/debian stable/non-free DEP-11 64x64 Icons [30.0 kB]
Get:18 http://http.us.debian.org/debian stable/non-free DEP-11 128x128 Icons [85.2 kB]
Fetched 39.0 MB in 44s (874 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
symon@debian:~$
با عرض سلام و خسته نباشید بنده هنگام اجرای دستور sudo apt update در دبیان به یه سری مشکلات بر میخورم از قبیل ارور هایی که در پایان کار می دهد (در گوگل هم سرچ کردم ولی حل نشد) اگه کسی میتواند کمک کند ممنون میشوم واقعاroot@debian:~# sudo apt update
Ign:1 http://http.us.debian.org/debian stable InRelease
Get:2 http://http.us.debian.org/debian stable Release [118 kB]
Get:3 http://http.us.debian.org/debian stable Release.gpg [2,434 B]
Ign:3 http://http.us.debian.org/debian stable Release.gpg
Reading package lists... Done
W: GPG error: http://http.us.debian.org/debian stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8B48AD6246925553 NO_PUBKEY 7638D0442B90D010 NO_PUBKEY EF0F382A1A7B6500
E: The repository 'http://http.us.debian.org/debian stable Release' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.