انجمنهای فارسی اوبونتو
کمک و پشتیبانی => نصب، راهاندازی و بروزآوری => نویسنده: H_keivan در 16 آذر 1396، 12:23 بظ
-
سلام
من میخوام دو تا نرم افزار libtool و pkg-config رو نصب کنم ولی وقتی کدو میزنم این ارور رو میده:hadi@hadi-To-be-filled-by-O-E-M:~$ sudo apt-get update
[sudo] password for hadi:
Hit:1 http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu artful InRelease
Reading package lists... Done
hadi@hadi-To-be-filled-by-O-E-M:~$ sudo apt-get install pkg-config libtool
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package pkg-config is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libtool is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'pkg-config' has no installation candidate
E: Package 'libtool' has no installation candidate
hadi@hadi-To-be-filled-by-O-E-M:~$
در ضمن etc/apt/source.list/ ام هم رو حالت پیشفرضه
به نظر شما مشکل از چیه؟
نسخه اوبونتو ام هم 17.10 هستش
-
در ضمن etc/apt/source.list/ ام هم رو حالت پیشفرضه
من شک دارم!
خروجی این فرمان رو بذار:
cat /etc/apt/sources.list | nc paste.ubuntu.ir 1337
-
cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 17.10 _Artful Aardvark_ - Release amd64 (20171018)]/ artful main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb-src http://ir.archive.ubuntu.com/ubuntu/ artful main restricted
## Major bug fix updates produced after the final release of the
## distribution.
# deb-src http://ir.archive.ubuntu.com/ubuntu/ artful-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-src http://ir.archive.ubuntu.com/ubuntu/ artful universe
# deb-src http://ir.archive.ubuntu.com/ubuntu/ artful-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-src http://ir.archive.ubuntu.com/ubuntu/ artful multiverse
# deb-src http://ir.archive.ubuntu.com/ubuntu/ artful-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-src http://ir.archive.ubuntu.com/ubuntu/ artful-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 artful partner
# deb-src http://archive.canonical.com/ubuntu artful partner
# deb-src http://security.ubuntu.com/ubuntu artful-security main restricted
# deb-src http://security.ubuntu.com/ubuntu artful-security universe
# deb-src http://security.ubuntu.com/ubuntu artful-security multiverse
-
دیدی گفتم!
تمام خطهای داخل این پرونده comment شده. یعنی apt از هیچ کدوم از خطها استفاده نمیکنه.
همچنین هیچ کارسازی برای گرفتن بسته از اینترنت توی این پرونده نداریم! فقط deb-src داریم که کدمنبع بستههارو میگیره!
بنابراین این پروندهت کلاً خرابه!
این چهار خطی که بهت میدم رو بذار انتهای پرونده و ذخیرهش کن:
deb http://de.archive.ubuntu.com/ubuntu/ artful main universe multiverse restricted
deb http://de.archive.ubuntu.com/ubuntu/ artful-updates main universe multiverse restricted
deb http://de.archive.ubuntu.com/ubuntu/ artful-backports main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu artful-security main universe multiverse restricted
بعد:
sudo apt update
sudo apt install pkg-config libtool
-
دیدی گفتم!
تمام خطهای داخل این پرونده comment شده. یعنی apt از هیچ کدوم از خطها استفاده نمیکنه.
همچنین هیچ کارسازی برای گرفتن بسته از اینترنت توی این پرونده نداریم! فقط deb-src داریم که کدمنبع بستههارو میگیره!
بنابراین این پروندهت کلاً خرابه!
این چهار خطی که بهت میدم رو بذار انتهای پرونده و ذخیرهش کن:
deb http://de.archive.ubuntu.com/ubuntu/ artful main universe multiverse restricted
deb http://de.archive.ubuntu.com/ubuntu/ artful-updates main universe multiverse restricted
deb http://de.archive.ubuntu.com/ubuntu/ artful-backports main universe multiverse restricted
deb http://security.ubuntu.com/ubuntu artful-security main universe multiverse restricted
بعد:
sudo apt update
sudo apt install pkg-config libtool
ممنون
ببخشید ولی اینا که سروراش مال آلمانه مشکلی ایجاد نمیشه؟؟؟
-
اینها کارساز اصلی نیستن! اینها آینه حساب میشن.
همون irیی هم که شما داری، آینه هست.
اینا کارسازهایی هستن که بستههای کارساز اصلی رو همگامسازی (sync) میکنن.
پس اصلاً مهم نیست از کدومشون استفاده میکنی. هر کدوم که سرعت بیشتری داشته باشن، کار آدم رو راه میاندازن.
آینهٔ ir خوبه ولی خیلی وقتا دیر بهروزرسانی میشه. de یه جورایی بهروزتره. من که مشکلی توی این چندسال باهاش نداشتم.
سرعتشون هم تقریباً یکیه. خواستی میتونی از همون ir استفاده کنی.