انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید




نویسنده موضوع: نصب pyfits در اوبونتو  (دفعات بازدید: 1029 بار)

0 کاربر و 6 مهمان درحال مشاهده موضوع.

آفلاین mahta-parsa

  • Newbie
  • *
  • ارسال: 9
نصب pyfits در اوبونتو
« : 02 مهر 1398، 12:59 ب‌ظ »
بنده نیاز به نصب بسته pyfits مربوط به پایتون در اوبونتوی 16.04 را دارم. هنگام استفاده از دستور
sudo apt-get install python-pyfits
با خطای
Err http://us.archive.ubuntu.com/ubuntu/ wily/universe python-pyfits amd64 1:3.3-7
  404  Not Found [IP: 91.189.91.24 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/p/pyfits/python-pyfits_3.3-7_amd64.deb  404  Not Found [IP: 91.189.91.24 80]
روبه رو می شوم. دستور
apt-get update
نیز مشکل را حل نمی کند. آیا راه حلی برای نصب pyfits وجود دارد؟

آفلاین esmaeelE

  • ناظر انجمن
  • *
  • ارسال: 1260
  • جنسیت : پسر
پاسخ : نصب pyfits در اوبونتو
« پاسخ #1 : 02 مهر 1398، 02:30 ب‌ظ »
محتوی فایل زیر را ارسال کنید

/etc/apt/sources.list

آفلاین mahta-parsa

  • Newbie
  • *
  • ارسال: 9
پاسخ : نصب pyfits در اوبونتو
« پاسخ #2 : 02 مهر 1398، 04:30 ب‌ظ »
ببخشید متوجه نشدم دقیقا باید چه دستوری را در ترمینال بنویسم.

آفلاین esmaeelE

  • ناظر انجمن
  • *
  • ارسال: 1260
  • جنسیت : پسر
پاسخ : نصب pyfits در اوبونتو
« پاسخ #3 : 02 مهر 1398، 04:53 ب‌ظ »
ببخشید متوجه نشدم دقیقا باید چه دستوری را در ترمینال بنویسم.

sudo cat /etc/apt/sources.list
خروجی داخل ترمینال چاپ می‌شه که در واقع محتوای فایل متنیه، خروجی دستورو ارسال کنید.

آفلاین mahta-parsa

  • Newbie
  • *
  • ارسال: 9
پاسخ : نصب pyfits در اوبونتو
« پاسخ #4 : 02 مهر 1398، 07:22 ب‌ظ »
خروجی به شرح زیر است

# deb cdrom:[Ubuntu 15.10 _Wily Werewolf_ - Release amd64 (20151021)]/ wily main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ wily main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ wily main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ wily-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-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://us.archive.ubuntu.com/ubuntu/ wily universe
deb-src http://us.archive.ubuntu.com/ubuntu/ wily universe
deb http://us.archive.ubuntu.com/ubuntu/ wily-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-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://us.archive.ubuntu.com/ubuntu/ wily multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily multiverse
deb http://us.archive.ubuntu.com/ubuntu/ wily-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-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://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ wily-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu wily-security main restricted
deb-src http://security.ubuntu.com/ubuntu wily-security main restricted
deb http://security.ubuntu.com/ubuntu wily-security universe
deb-src http://security.ubuntu.com/ubuntu wily-security universe
deb http://security.ubuntu.com/ubuntu wily-security multiverse
deb-src http://security.ubuntu.com/ubuntu wily-security 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 wily partner
# deb-src http://archive.canonical.com/ubuntu wily partner

آفلاین esmaeelE

  • ناظر انجمن
  • *
  • ارسال: 1260
  • جنسیت : پسر
پاسخ : نصب pyfits در اوبونتو
« پاسخ #5 : 02 مهر 1398، 07:33 ب‌ظ »
خب به نظر میرسه شما از ابونتو 15 استفاده می‌کنید (لیست مخازن که روی این توزیع تنظیم شده)که به پایان عمر پشتیبیانی خود رسیده (EOL:End of Life) به همین خاطر مخازن کار نمی‌کنن.

محتوای فایل مورد نظرو پاک کنید و با خطوط زیر جایگزین کنید.

به سادگی با gedit بازش کنید.

sudo gedit /etc/apt/sources.list
ctrl+A بزنید و delete تا پاک بشه.

حالا خطوط زیرو داخلش کپی کنید بعد با ctrl+c ذخیره کنید.


deb http://old-releases.ubuntu.com/ubuntu/ wily main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ wily main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ wily-security main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ wily-security main universe restricted multiverse

deb http://old-releases.ubuntu.com/ubuntu/ wily-updates main universe restricted multiverse
deb-src http://old-releases.ubuntu.com/ubuntu/ wily-updates main universe restricted multiverse

بعدش لیست مخازنو آپدیت کنید.

sudo apt update
پی‌نوشت
توصیه میشه که از نسخه‌های جدیدتر اوبونتو ترجیحاً LTS استفاده کنید.
خروجی دستور زیر نوع توزیع شمارو مشخص می‌کنه
uname -a
« آخرین ویرایش: 30 آذر 1398، 04:53 ق‌ظ توسط esmaeelE »

آفلاین علیرضاامیرصمیمی

  • ناظر انجمن
  • *
  • ارسال: 2489
  • جنسیت : پسر
  • Arch Linux + KDE
    • وبسایت شخصی من
پاسخ : نصب pyfits در اوبونتو
« پاسخ #6 : 04 مهر 1398، 09:17 ب‌ظ »
بنده نیاز به نصب بسته pyfits مربوط به پایتون در اوبونتوی 16.04 را دارم. هنگام استفاده از دستور
sudo apt-get install python-pyfits
با خطای
Err http://us.archive.ubuntu.com/ubuntu/ wily/universe python-pyfits amd64 1:3.3-7
  404  Not Found [IP: 91.189.91.24 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/p/pyfits/python-pyfits_3.3-7_amd64.deb  404  Not Found [IP: 91.189.91.24 80]
روبه رو می شوم. دستور
apt-get update
نیز مشکل را حل نمی کند. آیا راه حلی برای نصب pyfits وجود دارد؟

سلام
شما از توزیع اوبونتو ۱۵.۱۰ (Wiley werewolf) استفاده می‌کنید که مدتهاست پشتیبانی اون به پایان رسیده. باید اوبونتوی نسخه ۱۸.۰۴ یا ۱۹.۰۴ رو نصب کنید. برای لینک دانلود به لینک زیر مراجعه کنید.
https://ubuntu.com/download/desktop