ورود

View Full Version : مشکل در نصب ns2 در ubuntu



saeed.8350028
پنج شنبه 14 آذر 1392, 00:30 صبح
سلام دوستان
من می خوام ns2.34 را در ubuntu 11.04 نصب کنم اینجور که متوجه شدم باید ابتدا دستور زیر را بزنم

sudo apt-get update
ولی بعد از زدن این کد با اینکه به اینترنت وصل هستم ولی همه فایل ها کامل نصب نمیشن قسمتی از خطا را در زیر میارم

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80]

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/natty-security/universe/binary-amd64/Packages 404 Not Found [IP: 91.189.91.15 80]

E: Some index files failed to download. They have been ignored, or old ones used instead.

در ضمن محتویات فایل sources.list من به شرح زیر می باشد

deb cdrom:[Ubuntu 11.04 _Natty Narwhal_ - Release amd64 (20110427.1)]/ natty main restricted
deb-src http://archive.ubuntu.com/ubuntu natty main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ natty restricted main multiverse universe #Added by software-properties

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ natty-updates main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates restricted main multiverse universe #Added by software-properties

## 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://us.archive.ubuntu.com/ubuntu/ natty universe
deb http://us.archive.ubuntu.com/ubuntu/ natty-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.

## 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://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse
# deb-src http://us.archive.ubuntu.com/ubuntu/ natty-backports main restricted universe multiverse

deb http://us.archive.ubuntu.com/ubuntu/ natty-security main restricted multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ natty-security restricted main multiverse universe #Added by software-properties
deb http://us.archive.ubuntu.com/ubuntu/ natty-security universe

## 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 natty partner
# deb-src http://archive.canonical.com/ubuntu natty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu natty main
deb-src http://extras.ubuntu.com/ubuntu natty main
deb http://www.emdebian.org/debian squeeze main
deb-src http://www.emdebian.org/debian squeeze main

پیشاپیش ممنون از اینکه این متن را خوندین و احتمالا جواب دادین

hghyami
پنج شنبه 14 آذر 1392, 13:45 عصر
http://barnamenevis.org/showthread.php?424357-%D8%B4%D8%A8%DB%8C%D9%87-%D8%B3%D8%A7%D8%B2-ns2-%D8%AF%D8%B1-%D9%84%DB%8C%D9%86%D9%88%DA%A9%D8%B3

saeed.8350028
پنج شنبه 14 آذر 1392, 23:32 عصر
دوست عزیز ممنوم از جوابتون.
من این پست را قبلا خونده بودم. مشکل من در update کردن هست و در حالی که به اینترنت متصل هستم، خطایی که در بالا نوشتم بهم می ده!

hghyami
جمعه 15 آذر 1392, 12:47 عصر
شما درست میگی‌ و معذرت میخوان. مشکل شما از source هاتو هست. ببین error اول بهت میگه مشکل چیه و اگر مستقیم بری به اون لینک میبینی‌ خودت. اون لینک وجود نداره.

Correct Link: http://us.archive.ubuntu.com/ubuntu/dists/saucy-security/multiverse/binary-amd64
Wrong Link: http://us.archive.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-amd64/Packages%C2%A0

https://help.ubuntu.com/community/Repositories/Ubuntu#Ubuntu_Software_Tab





deb http://security.ubuntu.com/ubuntu natty-security main restricted
deb-src http://security.ubuntu.com/ubuntu natty-security main restricted
deb http://security.ubuntu.com/ubuntu natty-security universe
deb-src http://security.ubuntu.com/ubuntu natty-security universe
deb http://security.ubuntu.com/ubuntu natty-security multiverse
deb-src http://security.ubuntu.com/ubuntu natty-security multiverse



بعدش فایل sources.list خودت رو اول ازش یک کپی‌ بگیر و بعدش تمام لین هارو # عدد کن و به جاش source هایی رو که من گذاشتم بذار. برات فایل سورس رو هم گذاشتم


یا اینکه این فایل رو بذار جای فایل sources.list
جای این فایل هم: /etc/apt/


sudo apt-get update

saeed.8350028
جمعه 15 آذر 1392, 20:24 عصر
سلام ممنون از توجهتون
متاسفانه فایل sources.list آپلود نشده لطفا دوباره برام بزارینش.
debهایی که در پست قبل اورده بودین را اضافه کردم ولی باز هم خطا دارم.

W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/natty-security/multiverse/binary-amd64/Packages 404 Not Found [IP: 91.189.92.200 80]

hghyami
شنبه 16 آذر 1392, 01:21 صبح
https://help.ubuntu.com/community/PreciseUpgrades

میتونی‌ multiverse رو برداری ولی‌ پیشنهاد من این هست که upgrade کن به ۱۲.۰۴ که راحت تر هم هست و LTS هم هست. اگر میتونی‌ و مشکل نداری من جای شما باشم آپگرید می‌کنم اگر نه مشکل نیست بگو اینرو با هم حل می‌کنیم. اگر بتونی‌ که تیمویور هم بعدی به من که بتونم عکس ببینم چی‌ هست شاید اسون تر باشه.

ولی‌ اگر می‌خوای که با همین بمونی دستور زیر رو اجرا کن. فقط خواهشن قبلش sources.list رو backup بگیر
sudo sed -i.bak 's,http://.*ubuntu.com,http://old-releases.ubuntu.com,g' /etc/apt/sources.list
sudo apt-get -y update

saeed.8350028
شنبه 16 آذر 1392, 15:40 عصر
مرسی دوست من درست شد.
یک دنیا ممنون.:لبخندساده: