- shelling / sources.list
- Как добавить репозиторий Linux Mint
- Как добавить репозиторий в MintSources
- 1. Настройка официальных репозиториев
- 2. Настройка PPA-репозиториев
- Добавление репозиториев через add-apt-repository
- 1. Репозитории PPA
- 2. Обычные репозитории
- Добавление репозиториев вручную
- Выводы
- Easy Linux Tips Project
- Software sources list of Linux Mint 20.2: how to repair it
- Linux Mint Forums
- Sources.list (s)
- Sources.list (s)
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
- Re: The sources.list and their variables
shelling / sources.list
deb http://packages.linuxmint.com/ isadora main upstream import |
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse |
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse |
deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse |
deb http://archive.canonical.com/ubuntu/ lucid partner |
deb http://packages.medibuntu.org/ lucid free non-free |
deb http://dl.google.com/linux/deb/ stable non-free |
deb http://tw.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse |
deb http://debian.nctu.edu.tw/ubuntu/ lucid main restricted universe multiverse |
deb http://free.nchc.org.tw/ubuntu/ lucid main restricted universe multiverse |
deb http://deb.opera.com/opera lenny non-free |
deb http://repository.glx-dock.org/ubuntu lucid cairo-dock |
deb http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu lucid main |
#deb http://archive.getdeb.net/ubuntu lucid-getdeb apps |
#deb http://archive.getdeb.net/ubuntu lucid-getdeb games |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Как добавить репозиторий Linux Mint
Для установки приложений в Linux Mint предусмотрен графический менеджер программ. Проблема в том, что пакеты в официальных репозиториях обновляются значительно реже, чем разработчики программ выпускают обновления. Если вам важно иметь свежую версию, лучше устанавливать подпрограмму из сторонних источников, например, PPA. Однако, прежде чем что-либо загружать из этих репозиториев, нужно добавить их в систему.
Также порой возникает необходимость отредактировать список репозиториев Linux Mint по умолчанию. К примеру, можно добавить источники пакетов для Ubuntu, что позволит устанавливать обновления и программы, предназначенные для другой системы. Однако, здесь важны два условия — во-первых, операционные системы должны быть совместимы, а во-вторых, вы должны понимать, что и зачем будете инсталлировать в систему. В этой статье мы рассмотрим как добавить репозиторий в Linux Mint.
Как добавить репозиторий в MintSources
Наиболее простой способ добавить новые репозитории — утилита mintsources, обладающая графическим интерфейсом и доступная по адресу: Меню → Система → Источники приложений. Для работы с официальными или сторонними репозиториями выбирайте соответствующий пункт меню.
1. Настройка официальных репозиториев
Чтобы выбрать зеркало репозитория, достаточно щёлкнуть по его названию. Откроется список всех официальных адресов. После этого подождите 2-3 минуты, за это время подгрузится информация о скорости отдачи файлов по каждому из них. Имеет смысл выбирать тот вариант с самой высокой скоростью.
Далее, система попросит нажать кнопку ОК для выполнения обновления кэша APT. Если вы этого не сделаете, будут использоваться прежние настройки.
Также в окне Официальные репозитории расположены настройки дополнительных источников:
- Репозитории исходного кода — если вы не собираетесь вносить правки в исходный код Linux Mint, оставьте ползунок в состоянии Off.
- Символы отладки — нужны для отладки системы. Если вы не разработчик Linux Mint, то вам они вряд ли понадобятся. Поступайте так же, как и в предыдущем случае.
- Нестабильные пакеты (romeo) — в этом репозитории хранятся готовые, но ещё не протестированные пакеты. Их скачивают принимающие участие в бета-тестировании. Если вы не из их числа, просто оставьте всё как было.
Кстати, если вы не помните как было, но уже успели нажать на все подряд, воспользуйтесь кнопкой Восстановить стандартные настройки. Все изменения, даже сохранённые, будут отменены.
2. Настройка PPA-репозиториев
Изначально список сторонних репозиториев пуст. Чтобы добавить репозиторий в Linux Mint воспользуйтесь кнопкой Добавить. На экране появится окно, куда следует ввести адрес репозитория.
Для примера воспользуемся репозиторием программы Grub Customizer, позволяющей изменить внешний вид и настройки загрузчика операционной системы. Подробнее о ней читайте в другой статье. А пока что пропишем в окне название этого репозитория — ppa:danielrichter2007/grub-customizer — и нажмём ОК для подтверждения.
Если заявленный репозиторий будет найден системой, появится следующее окно — с информацией от разработчика. Здесь тоже нужно нажать ОК.
И последний этап — обновление индекса пакетов apt. После того, как в очередной раз будет нажата кнопка OK и система прочитает весь список источников, репозиторий будет добавлен.
Аналогично вы можете добавить другие дополнительные репозитории Linux Mint.
Добавление репозиториев через add-apt-repository
В отличие от утилиты mintsources, утилита add-apt-repository работает только из терминала. Все изменения списка репозиториев проводятся исключительно пользователем с правами администратора системы. Поэтому обязательно используйте утилиту sudo для выполнения нижеследующих команд.
1. Репозитории PPA
Итак, первая команда. Собственно, она и добавляет новый репозиторий ppa Linux Mint в список:
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
Вторая команда выполняет уже знакомое нам обновление списка пакетов:
sudo apt update
После введения первой команды введите пароль. Когда система выведет информацию о репозитории и попросит подтвердить его добавление, нажмите Enter.
2. Обычные репозитории
Добавляются точно так же, как и сторонние. Разница лишь в том, как указывать ссылку на источник. Если в предыдущем случае она имела вид ppa:ppa-owner/ppa-name, то при добавлении обычных репозиториев следует указывать ключевое слово deb, ссылку на источник, например, http://mirrors.evowise.com/linuxmint/packages и название релиза для 19.3 — tricia:
sudo add-apt-repository deb http://mirrors.evowise.com/linuxmint/packages tricia
Класс (stable, oldstable и тому подобное) можно не указывать. Не забывайте об обновлении кэша APT:
sudo apt-get update
Добавление репозиториев вручную
Кроме того, возможно добавление репозиториев Linux Mint вручную — редактируя файл, в котором они прописаны. Чтобы открыть sources.list с официальными источниками, наберите в терминале команду:
sudo nano /etc/apt/sources.list.d/official-package-repositories.list
Nano — любимый текстовый редактор автора, а вы можете использовать любой, какой пожелаете.
Репозиторий добавляется аналогично тому, как это делается с помощью apt-add-repository, только здесь надо просто прописать строку настройки репозитория в файл. Если вам нужно добавить сторонние репозитории, отправляйтесь по адресу: /etc/apt/sources.list.d/etc/apt/sources.list.d/. В этой директории в отдельных файлах хранятся данные о PPA-репозиториях.
Чтобы добавить новый репозиторий, создайте файл репозиториев linux mint с расширением .list:
sudo nano /etc/apt/sources.list.d/nazvanie-repository.list
Указывайте реальное название репозитория.
Найдите на сайте https://launchpad.net страницу того репозитория, который хотите добавить. Вам понадобятся данные следующего вида:
deb http://ppa.launchpad.net/nazvanie-repozitoria/nazvanie-programmy/ubuntu bionic main
# deb-src http://ppa.launchpad.net/nazvanie-repozitoria/nazvanie-programmy/ubuntu bionic main
Скопируйте их, вставьте в файл, после чего сохраните изменения. В директории /etc/apt/sources.list.d появится только что созданный файл. Сторонний репозиторий добавлен.
Выводы
Сегодня мы разобрались как добавить репозиторий в Linux Mint. Это едва ли не первая встретившаяся трудность для пользователя, установившего Linux Mint и пожелавшего установить ПО, отсутствующее в менеджере приложений. В завершение хотелось бы предупредить всех думающих, что в Linux не существует никаких вредоносных программ.
На самом деле их не так много, как для остальных ОС, но они есть, и частные репозитории (PPA) — один из путей заражения. Как правило, устанавливая программы из малоизвестных и непопулярных источников, вы рискуете сделать компьютер частью ботнета или «подарить» персональные данные хакерам. Так что, будьте внимательны и осторожны в своих действиях.
Источник
Easy Linux Tips Project
Easy tips for Linux Mint and Ubuntu, both for beginners and for advanced users.
Software sources list of Linux Mint 20.2: how to repair it
In Linux Mint you install everything from its software repositories (sources). It’s therefore very important, that you have no wrong or defective repositories in your sources list.
Are you unsure whether the software sources of your system are all reliable? Or are you having problems with Update Manager because of your software sources? Below you’ll find a how-to for establishing a list with absolutely reliable sources, which should work well.
Note (1): this page is only meant for Linux Mint 20.2 Uma!
Note (2): this is an emergency measure. Only replace your sources list when it’s necessary; namely when you have a polluted list with wrong or defective sources in it. Don’t do it for any other reason!
Note (3): With this, you won’t undo the damage that your system might have suffered from the use of wrong software sources. The only thing that you do now, is preventing new damage.
1. Launch Software Sources (Menu button — Administration — Software Sources).
Is it impossible to launch Software Sources? Then skip this and proceed with item 3 below.
a. Down below, on the right, click the button Restore the default settings
b. Then click the tab PPAs — untick all PPA’s that are mentioned there.
c. Then click the tab Additional repositories , and untick all sources mentioned on that page.
d. Finally, click the OK button to update the APT cache.
Close Software Sources. With that, the job’s (practically) done!
You have disabled all software sources that you possibly have added yourself, but that was the intention in the first place. You now have a clean sources list, but. you’ll get no more updates for software that you’ve installed from sources that you’ve added yourself (like PPA’s).
2. If you’ve installed web browser Google Chrome, you’ll get no more updates now for Chrome. Because Chrome has it’s own software source.
In order to receive new Chrome versions anyway, you can simply enable the Chrome source again (it’s on the tab Additional repositories in Software Sources).
3. Is it impossible to launch the application Software Sources? Then proceed as follows:
a. Launch a terminal window.
(You can launch a terminal window like this: *Click*)
b. Use copy/paste to transfer the following line into the terminal, in order to avoid errors (this is one line!):
c. Delete everything in that text file, and then copy/paste the following new blue text into it:
deb http://packages.linuxmint.com uma main upstream import backport
deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ focal partner
#deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
d. Save the changes and close the file. This is the default sources list for Mint 20, with only one addition: a disabled source for Google Chrome (which you can enable at wish).
e. Then in the terminal:
sudo apt-get update
Press Enter. Type your password when prompted. In Ubuntu this remains entirely invisible, not even dots will show when you type it, that’s normal. In Mint this has changed: you’ll see asterisks when you type. Press Enter again.
f. Then in the terminal (use copy/paste) in order to install all updates:
sudo mintupdate-cli upgrade -r
Do you want more tips and tweaks? There’s a lot more of them on this website!
To the content of this website applies a Creative Commons license.
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Sources.list (s)
Sources.list (s)
Post by Gerd50 » Wed Aug 17, 2011 11:44 am
1. The sources.list and their possibilities at first is not easy to understand. There are the LMDE sources latest testing,
incoming testing and the Debian sources.
For a better understanding the Debian branches first:
oldstable — Codename ‘squeeze’
stable — Codename ‘wheezy’
testing — Codename ‘jessie’
unstable — Codename ‘sid’
experimental
In the sources.list both can be used, the branch designation or the codename. For example:
Both variables are tracking the same source.
The basic rule is, upgrades are possible. Downgrades impossible. For instance you can upgrade from testing to unstable, but
you can’t or better should not downgrade from testing to stable!
1.1 — sources.list in a fresh installed system (201108 RC/201109 ISO)
This list hopefully guarantees a best as possible stable update system
backport romeo component is not enabled by default. It is used by Linux Mint to test packages before they are included in other components. As such it represents the unstable branch of Linux Mint. To enable it remove the # , to disable it, add it again by
using the gksu gedit command.
1.2 — sources.list in a fresh installed system (201012/201101/201104 Xfce ISO)
The multimedia source was changed to:
The package deb-multimedia-keyring must be installed!
1.3 — a sources.list with all repositories that can be used
This list is usable but should only be used by those who exactly know what they are doing. Active are the sources without #. To enable sources, remove the # . To comment out (disable) them add # again.
1.4 — sources.list for tester, bughunter who want to identify broken update pks before they are ported to the latest testing sources.
1.5 — sources.list with the most important sources for a variable handling of upgrades/downgrades
This list also should only be used by those, who know what they are doing. If it happened for example gnome 3 pks were installed,
but they are not wanted, you can get the old pks back by activating the stable sources. Or if you want more current pks than they
are in testing, activate the unstable sources.
Don‘t forget to comment out (disable) sources with # after each action and refresh synaptic. Who forgets it, risks a broken
system!
1.6 sources.list for LMDE with Debian stable (wheezy) repos
In order to run LMDE with Debian stable sources install 201012 Gnome 64-bit or 201101 Gnome 32-bit and change the
sources.list after installation.
1.7 sources.list for LMDE with unstable (sid) repos
Some useful links that help explain sources and package management in Debian/LMDE:
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by twa » Wed Aug 17, 2011 12:36 pm
Re: The sources.list and their variables
Post by Gerd50 » Wed Aug 17, 2011 12:57 pm
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by AbeOwitz » Thu Aug 18, 2011 5:10 pm
Re: The sources.list and their variables
Post by ProTacticus » Fri Aug 19, 2011 5:14 pm
Very well, thank you
Also, you can look this:
Re: The sources.list and their variables
Post by Gerd50 » Fri Aug 19, 2011 5:35 pm
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by Gerd50 » Sun Aug 21, 2011 6:12 pm
After twa reported problems with the 1.1 list
i revised point 1.2 . For those who have installed LMDE with 201012/201101 ISO and changed their sources.list to the
latest/incoming testing sources, please take a look at it.
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by gavinhc » Mon Aug 22, 2011 9:35 am
Re: The sources.list and their variables
Post by jlsmith722 » Tue Aug 23, 2011 11:37 am
Re: The sources.list and their variables
Post by jae70888 » Tue Aug 23, 2011 11:19 pm
Re: The sources.list and their variables
Post by craigevil » Sat Aug 27, 2011 11:21 am
Some useful links that help explain sources and package management in Debian/LMDE.
Re: The sources.list and their variables
Post by Gerd50 » Sat Aug 27, 2011 11:57 am
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by Gerd50 » Mon Aug 29, 2011 7:11 pm
Because of this
and some other reports i’ve added a note to point 1.1. The Debian multimedia sources may cause problems with unmet
dependencies contained in latest testing.
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by Gerd50 » Tue Aug 30, 2011 6:02 am
clem wrote on Tue Aug 30:
Update Pack 3 is ready for you to test
WARNING: LMDE Update Packs now cover not only the Debian repository, but also the «Security» and «Multimedia» repos. Make absolutely sure you’re pointing to these three repositories (and not to the original debian, security or multimedia repos):
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by gosa » Fri Sep 02, 2011 9:12 am
Very nice thread, this will be very useful.
Re: The sources.list and their variables
Post by Gerd50 » Sat Sep 17, 2011 6:01 pm
Who installed the new 201109 release and updated the system, even it’s not recommended
can change the sources.list to that one in point 1.4 and should be fine for now. You can switch back to latest when
the mint team announces update pack 3 is available for the latest repos.
How the sources.list for 201109 should look like in it’s basics i will report here in point 1.1 when update pack 3 is
available for latest.
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by bodam » Wed Sep 21, 2011 7:07 pm
I saw the email related to the Update Pack 3 testers telling them to start using these repos exclusively and no longer use any of the debian ones.
I saw all of the sources options discussed in this thread but now I’m confused. If I wanted to use the latest repos only, does it follow that I should basically have only of these in my sources?
Re: The sources.list and their variables
Post by Gerd50 » Thu Sep 22, 2011 5:15 am
yes, the latest list you’ve posted will be the basic sources.list when Update Pack 3 is available for latest. Security and
multimedia will become part of “Linux Mint Debian Latest” together with the arrival of UP 3. Up to then you should be
fine with the incoming testing repos.
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Re: The sources.list and their variables
Post by craig10x » Thu Sep 22, 2011 12:19 pm
I recently installed the latest lmde re-spin iso and am pointed to the default «latest» for updates. i did do the small update 2 pack using the original source list that it came with. should i be ok when pack3 becomes available for latest (when the sources will change)?
Also, Clem mentioned that he is going to try to have the sources change over automatically for the update pack3 when it hits «latest» but in case he is unable to do that, and it had to be done manually, can you explain to me how to do it?
would i just go to edit on the update manager software sources and copy and paste the source lines you show above? Or do you do it in the terminal?
If in terminal, what would the commands be?
and then, after the new sources are added to the list. would i then delete the two older (pointed to debian testing) source lines?
please give me a simple outline for this (just in case)
Re: The sources.list and their variables
Post by Gerd50 » Thu Sep 22, 2011 4:14 pm
If you want to go the safe way up to then if UP3 will be available for latest, disable Security and Multimedia sources.
To change the content of my sources.list i use ‘gksu gedit etc/apt/sources.list’. If UP3 will be available i’ll show up the new
list in point 1.1 above and you then can copy and paste it to your list. The old lines can be deleted then.
I believe in everything, except humans.
LM9, Debian Testing Xfce, Debian Sid Xfce — CPU/Amd64 2,6Ghz, Graphics/Nvidia 9600 GT, Sound/SB Audigy4 emu10K1
Источник