انجمنهای فارسی اوبونتو
		کمک و پشتیبانی => انجمن عمومی => نویسنده: مرتضی عبدالهی در 07 فروردین 1400، 04:12 قظ
		
			
			- 
				سلام دوستان میدونید که هرکسی نیست هر چیزی رو بلد باشه هر ادمی خطا میکنه 
خب بگذریم دوستان من توی دنیای لینکوس اوبونتو تازه واردم و یه سری مشکلات دارم
مشکلم اینه که دستور sudo apt-get update در ترمینال اوبونتو کار نمیکنه اصلا نه میتونم مخازن رو اپدیت کنم نه نرم  افزار ها و نه چیزی میتونم نصب کنم ممنون میشم راهنمایم کنید  :'(
			 
			
			- 
				درود بر تو. به دنیای آزاد خوش اومدی.
اینجا همهچیز منظقیه و هیچ اتّفاقی به صورت غیرمنتظره نمیافته. برای همین پیدا کردن مشکلات، خیلی آسونن.
ولی برای این که بشه فهمید مشکل از کجا ایحاد شده× باید کاری که میکنی، انتظاری که داری و اتّفاقی که میافته رو به صورت دقیق و با جزییات بهمون بگی. یعنی دقیقاً چیزهایی که مینویسی و چیزهایی که در پاسخ بهت برمی گردونه رو/
			 
			
			- 
				وقتی دستور sudo apt-get update میزنم خروجی که بر میگردونه اینه:
Ign:1 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal InRelease
Err:2 cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal Release
  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs
Hit:3 http://ppa.launchpad.net/daniruiz/flat-remix/ubuntu focal InRelease                                                                                               
Hit:4 http://archive.ubuntu.com/ubuntu focal InRelease                                                                                                                  
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                                                                                    
Ign:6 http://old-releases.ubuntu.com/ubuntu focal InRelease                                                                               
Ign:7 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu focal InRelease                                                                       
Ign:8 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu focal InRelease                                                               
Hit:9 http://archive.canonical.com/ubuntu focal InRelease                                                                                       
Ign:10 http://old-releases.ubuntu.com/ubuntu focal-updates InRelease                                                                            
Hit:11 http://ppa.launchpad.net/numix/ppa/ubuntu focal InRelease                     
Hit:12 http://packages.microsoft.com/repos/code stable InRelease                                                                          
Ign:13 http://old-releases.ubuntu.com/ubuntu focal-backports InRelease                                                                    
Ign:14 http://old-releases.ubuntu.com/ubuntu focal-security InRelease                                                         
Hit:15 http://ppa.launchpad.net/starlabs/ppa/ubuntu focal InRelease                                                           
Ign:16 http://ppa.launchpad.net/tista/adapta/ubuntu focal InRelease                
Err:17 http://old-releases.ubuntu.com/ubuntu focal Release
  404  Not Found [IP: 91.189.88.247 80]
Err:18 http://ppa.launchpad.net/mc3man/xerus-media/ubuntu focal Release         
  404  Not Found [IP: 91.189.95.85 80]
Err:19 http://old-releases.ubuntu.com/ubuntu focal-updates Release              
  404  Not Found [IP: 91.189.88.247 80]
Err:20 http://ppa.launchpad.net/noobslab/macbuntu/ubuntu focal Release
  404  Not Found [IP: 91.189.95.85 80]
Err:21 http://old-releases.ubuntu.com/ubuntu focal-backports Release
  404  Not Found [IP: 91.189.88.247 80]
Err:22 http://old-releases.ubuntu.com/ubuntu focal-security Release
  404  Not Found [IP: 91.189.88.247 80]
Err:23 http://ppa.launchpad.net/tista/adapta/ubuntu focal Release
  404  Not Found [IP: 91.189.95.85 80]
Reading package lists... Done
E: The repository 'cdrom://Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423) focal Release' does not have a Release file.
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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/mc3man/xerus-media/ubuntu focal Release' does not have a Release file.
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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-updates Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/noobslab/macbuntu/ubuntu focal Release' does not have a Release file.
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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-backports Release' does not have a Release file.
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.
E: The repository 'http://old-releases.ubuntu.com/ubuntu focal-security Release' does not have a Release file.
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.
E: The repository 'http://ppa.launchpad.net/tista/adapta/ubuntu focal Release' does not have a Release file.
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.
			 
			
			- 
				دوستان زود جواب بدید واقعن خیلی کار دارم ممنون میشم  ](*,)
			
 
			
			- 
				لیست مخازن شما بهم ریخته. خروجی دوتا دستور زیر رو بزارید. از تگ کد موقع قرار دادن خروجی توی انجمن استفاده کنید تا متن درست نمایش داده بشه. (علامت # داده)
cat /etc/apt/sources.list
ls /etc/apt/sources.list.d
			 
			
			- 
				
دوستان زود جواب بدید واقعن خیلی کار دارم ممنون میشم  ](*,)
میشه لطف کنید بگید اوبونتو چند نصب کردید و از چه طریق نصب کردید؟
			 
			
			- 
				اوبونتوت قدیمیه. اوبونتو ۲۰٫۱۰ رو نصب کن.
			
 
			
			- 
				خب کدهای زیر رو وارد کردم از قبل هم وارده کرده بودم اما هیچ کار خاصی نشد
ببخشید دوستان اگه توی انجمن یکم عجیبم واقعن تازه واردم
cat /etc/apt/sources.list
ls /etc/apt/sources.list.d
خروجی:
moretza@ir:~$ cat /etc/apt/sources.list
deb cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://old-releases.ubuntu.com/ubuntu/ focal main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://old-releases.ubuntu.com/ubuntu/ focal-updates main restricted
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal-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://old-releases.ubuntu.com/ubuntu/ focal universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal universe
deb http://old-releases.ubuntu.com/ubuntu/ focal-updates universe
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal-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://old-releases.ubuntu.com/ubuntu/ focal multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal multiverse
deb http://old-releases.ubuntu.com/ubuntu/ focal-updates multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal-updates multiverse
## 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://old-releases.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
# deb-src http://old-releases.ubuntu.com/ubuntu/ focal-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 focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
# deb http://old-releases.ubuntu.com/ubuntu focal-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu focal-security main restricted
# deb http://old-releases.ubuntu.com/ubuntu focal-security universe
deb-src http://old-releases.ubuntu.com/ubuntu focal-security universe
# deb http://old-releases.ubuntu.com/ubuntu focal-security multiverse
deb-src http://old-releases.ubuntu.com/ubuntu focal-security multiverse
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
deb http://archive.ubuntu.com/ubuntu focal universe multiverse restricted main
moretza@ir:~$ ls /etc/apt/sources.list.d
certbot-ubuntu-certbot-focal.list               mc3man-ubuntu-xerus-media-focal.list.bak                starlabs-ubuntu-ppa-focal.list.save
certbot-ubuntu-certbot-focal.list.bak           mc3man-ubuntu-xerus-media-focal.list.save               starlabs-ubuntu-ppa-focal.list.save.bak
certbot-ubuntu-certbot-focal.list.save          mc3man-ubuntu-xerus-media-focal.list.save.bak           tista-ubuntu-adapta-focal.list
certbot-ubuntu-certbot-focal.list.save.bak      noobslab-ubuntu-macbuntu-focal.list                     tista-ubuntu-adapta-focal.list.bak
daniruiz-ubuntu-flat-remix-focal.list           noobslab-ubuntu-macbuntu-focal.list.bak                 tista-ubuntu-adapta-focal.list.save
daniruiz-ubuntu-flat-remix-focal.list.bak       noobslab-ubuntu-macbuntu-focal.list.save                tista-ubuntu-adapta-focal.list.save.bak
daniruiz-ubuntu-flat-remix-focal.list.save      numix-ubuntu-ppa-focal.list                             vikoadi-ubuntu-ppa-focal.list
daniruiz-ubuntu-flat-remix-focal.list.save.bak  numix-ubuntu-ppa-focal.list.bak                         vikoadi-ubuntu-ppa-focal.list.bak
deadsnakes-ubuntu-ppa-focal.list                numix-ubuntu-ppa-focal.list.save                        vikoadi-ubuntu-ppa-focal.list.save
gnome3-team-ubuntu-gnome3-focal.list            numix-ubuntu-ppa-focal.list.save.bak                    vikoadi-ubuntu-ppa-focal.list.save.bak
gnome3-team-ubuntu-gnome3-focal.list.bak        philip_scott-ubuntu-spice-up-daily-focal.list           vscode.list
gnome3-team-ubuntu-gnome3-focal.list.save       philip_scott-ubuntu-spice-up-daily-focal.list.bak       vscode.list.bak
gnome3-team-ubuntu-gnome3-focal.list.save.bak   philip_scott-ubuntu-spice-up-daily-focal.list.save      vscode.list.save
mc3man-ubuntu-trusty-media-focal.list           philip_scott-ubuntu-spice-up-daily-focal.list.save.bak  vscode.list.save.bak
mc3man-ubuntu-trusty-media-focal.list.save      starlabs-ubuntu-ppa-focal.list
mc3man-ubuntu-xerus-media-focal.list            starlabs-ubuntu-ppa-focal.list.bak
			 
			
			- 
				دوستان من بروزترین نسخه ی اوبونتو رو نصب کردم یعنی 24.04
و از طریق فلش نصب کردمش من احساس میکنم درست نصبش نکردم
			 
			
			- 
				
دوستان من بروزترین نسخه ی اوبونتو رو نصب کردم یعنی 24.04
و از طریق فلش نصب کردمش من احساس میکنم درست نصبش نکردم
بروز ترین ؟ ۲۰.۱۰ میتونید بتا ۲۱.۴ رو هم نصب کنید
			 
			
			- 
				دلیل اینکه اون دستورات تفاوتی رو ایجاد نکردن این بوده که اولی فقط محتوای فایل sources.list رو نشون میده و دومی چیزهای داخل مسیر /etc/apt/sources.list.d/ رو نمایش میده.
اول فایلهای مربوط به ppa های مشکل دار رو پاک کنید.
sudo rm /etc/apt/sources.list.d/{mc3man-ubuntu-xerus*,tista*,noobslab*}
فایل sources.list هم خیلی مشکل داره. بهتره کلا حذفش کنید و بعد یکی دیگه بسازید و اطلاعات درست رو داخلش کپی کنید.
اول پاکش کنید.
sudo rm /etc/apt/sources.list
الان با nano یا vi یا هر ویرایگر متنی که میخواهید، فایل sources.list رو بسازید.
sudo nano /etc/apt/sources.list
حالا متن زیر رو داخلش کپی کنید.
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
#deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
'deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
#deb-src http://archive.canonical.com/ubuntu focal partner
اگه به source برنامهها از طریق apt نیاز دارید، # اول خطهای که با deb-src شروع میشه رو بردارید. اگه نمیدونید چیه یا لازم ندارید، تغییرشون ندید.
یکبار لیست مخازن رو آپدیت کنید و ببینید مشکل حل شده یا نه؟
sudo apt update
			 
			
			- 
				ممنون از همگی دست تک تک تون رو میبوسم ;D انشا الله همینجوری ادامه بدین
مشکلم بر طرف شد  :D :D
			 
			
			- 
				یه حل شد به آخر عنوان موضوع اضافه کنید.