# (отредактировано 6 лет, 10 месяцев назад) |
|
Темы: 2 Сообщения: 9 Участник с: 06 июня 2014 |
Здравствуйте. Как ни странно, но я ни как не могу установить yaourt, чего я не ожидал. Я устанавливал Archlinux по инструкции, неделю готовился к установки, и застрял на моменте установки yaourt, который нужен для установки obmenu-generator. pacman -S yaourt выдал error: target not found: yaourt. Этого не было в инструкции! mirrorlist настроил и включил multilib, но толку нет. Решил тогда пойти в лоб и скачать исходник. Но makepkg -sri выдал error: target not found: package-query>=1.8, ERROR: ‘pacman’ failed to install missing dependencies..
Теперь я не знаю что делать. Я ничего не могу скачать из AUR, потому что yaourt зависит от package-query который так же находится в AUR %) Возможно я что то упустил, но не пойму что и где. Помогите пожалуйста, я почти сутки мучаюсь с этой проблемой. |
Haron_Prime |
# (отредактировано 6 лет, 10 месяцев назад) |
Темы: 28 Сообщения: 2109 Участник с: 08 июня 2014 |
подключить репозиторий archlinuxfr в вики всё это есть!
Gnome 2 >> Unity >> KDE 4 >> Openbox >> Awesome >> Xmonad |
Aivar |
# |
Темы: 4 Сообщения: 6897 Участник с: 17 февраля 2011 |
Какая досада… Собираете, устанавливаете. Собираете, устанавливаете. Пользуетесь. |
EFLFE |
# |
Темы: 2 Сообщения: 9 Участник с: 06 июня 2014 |
Вы про
? |
Aivar |
# |
Темы: 4 Сообщения: 6897 Участник с: 17 февраля 2011 |
https://wiki.archlinux.org/index.php/Unofficial_user_repositories#archlinuxfr Но я бы лучше собрал сам. |
jim945 |
# |
Темы: 8 Сообщения: 3069 Участник с: 25 января 2010 |
Опять вредные советы… Lupus pilum mutat, non mentem. |
EFLFE |
# |
Темы: 2 Сообщения: 9 Участник с: 06 июня 2014 |
Спасибо. archlinuxfr помог (и всё же ни где небыло намёка что его нужно поставить). Правда, мне ещё пришлось убрать SigLevel = Required DatabaseOptional и прописать pacman-key —init pacman-key —populate archlinux теперь я конечно не знаю, может ли это привести к чему либо плохому. |
Aivar |
# (отредактировано 6 лет, 10 месяцев назад) |
Темы: 4 Сообщения: 6897 Участник с: 17 февраля 2011 |
А это и не нужно было делать. Вас интересует официальная информация по йогурту или вы обращаете внимание только на советы «попроще»?
|
EFLFE |
# |
Темы: 2 Сообщения: 9 Участник с: 06 июня 2014 |
Так как я второй раз ставлю арч, я не могу знать, какие советы не стоит слушать. Я новичок (почти) но установить арч самому уже достижение xD На самом деле в одиночку это сложно. |
Aivar |
# (отредактировано 6 лет, 10 месяцев назад) |
Темы: 4 Сообщения: 6897 Участник с: 17 февраля 2011 |
На самом деле криминального особо ничего нет. Пользоваться неофициальными репозиториями с бинарными пакетами или нет — дело сугубо личное:
Арч устанавливается немногим сложнее убунты, а вот допил всего и вся может занять времени и усилий. ) |
- Index
- » Newbie Corner
- » [Solved] Cannot uninstall AUR packages «error: target not found»
Pages: 1
#1 2016-03-11 20:03:46
- victoroux
- Member
- Registered: 2013-05-17
- Posts: 13
[Solved] Cannot uninstall AUR packages «error: target not found»
Hello,
I installed a few packages (package-query and yaourt at least) from AUR. I cannot see these packages with pacman and yaourt is not working properly. I’m trying to remove with:
But it gives the error
error: target not found: yaourt
However, typing
gives:
yaourt 1.8.1
homepage: http://archlinux.fr/yaourt-en
Is there a way for me to see these «hidden» packages, and more importantly to remove them? I’ve tried the commands from the wiki already and a few of the methods listed on the forums. Can’t seem to even find people that are sharing this issue yet.
Thank you
Last edited by victoroux (2016-03-11 20:24:03)
#2 2016-03-11 20:09:17
- WorMzy
- Forum Moderator
- From: Scotland
- Registered: 2010-06-16
- Posts: 11,023
- Website
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
Are you sure they are packages? You haven’t done something daft like install them with ‘./configure; make; sudo make install’?
If you haven’t done that, then perhaps you have a similarly named package (e.g. yoaurt-git). Check what pacman knows about with, e.g. ‘pacman -Qs yaourt’.
Also check what owns the yaourt binary with ‘pacman -Qo $(which yaourt)’
Last edited by WorMzy (2016-03-11 20:10:03)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
#3 2016-03-11 20:09:34
- jasonwryan
- Anarchist
- From: .nz
- Registered: 2009-05-09
- Posts: 30,378
- Website
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
How did you install yaourt? What is the output of `which yaourt`?
Arch + dwm • Mercurial repos • Surfraw
Registered Linux User #482438
#4 2016-03-11 20:11:01
- Trilby
- Inspector Parrot
- Registered: 2011-11-29
- Posts: 27,838
- Website
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
There is no such thing as «hidden» packages. Clearly yaourt exists on your system, and just as clearly, it is not in pacman’s database. Either ‘yaourt’ is not the exact package name, or you installed yaourt in a way that circumvented pacman.
To check the former, try either of the following (or both):
pacman -Qs yaourt
pacman -Qm
To remove a package you need the full package name. This might be yaourt-git, for example.
If you installed yaourt circumventing pacman then there is no easy way to clean up the mess. You’d have to find every file installed and remove them yourself. We *might* be able to help with this if you tell us exactly how you installed it in the first place.
«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#5 2016-03-11 20:14:23
- Earnestly
- Member
- Registered: 2011-08-18
- Posts: 805
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
Use pacman -Qo yaourt to determine if any package owns it. If none do feel free to remove it. Make sure to check other files on the system but be aware that lots of software can generate «ghost files» so remove with discretion.
#6 2016-03-11 20:22:55
- victoroux
- Member
- Registered: 2013-05-17
- Posts: 13
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
Haven’t used Arch in 3 years, was on a fresh system. I did indeed fuck up and go the way of ./configure make install. I’ll simply re-install arch clean. Was still figuring out how to use AUR packages for the first time. Learned about makepkg -sri afterwards. Now I have an even better understanding of how it all works. Thank you, all
Out of curiousity, where exactly did the package install to? I deleted the home directory in which I configured/built all the other packages and where yaourt was also make installed.
#7 2016-03-11 20:26:03
- Trilby
- Inspector Parrot
- Registered: 2011-11-29
- Posts: 27,838
- Website
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
You can read the makefile to see what it actually did. If you ran `make install` as root then the files will be at various locations (/usr/bin/yaourt, /etc/…, possibly /usr/share/…). If you installed only to your home directory with something like `make install DESTDIR=/home/me/opt’ then cleaning up would be as easy as emptying out /home/me/opt. But I suspect you ran make install as root and installed to the root filesystem.
«UNIX is simple and coherent…» — Dennis Ritchie, «GNU’s Not UNIX» — Richard Stallman
#8 2016-03-11 20:28:57
- victoroux
- Member
- Registered: 2013-05-17
- Posts: 13
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
I think that’s what happened as well; did it through chroot from a live usb. Remembered seeing errors when trying to use yaourt that was looking for a file that didn’t exist sharing some familiarity of those path names. But no worries, re-installing, and have learned my lesson!
#9 2016-03-11 20:34:05
- Earnestly
- Member
- Registered: 2011-08-18
- Posts: 805
Re: [Solved] Cannot uninstall AUR packages «error: target not found»
Reinstalling Arch Linux is unnecessary, you can easily determine the files yaourt has installed by reading the Makefile or replaying the installation target in a separate DESTDIR and simply remove the respective files, it’s possible to methodically double check your actions along the way too.
[n.b. The de-facto standard in Makefiles is that the PREFIX is set to /usr/local so it is quite likely to have installed there, package managers as a policy tend to not touch that directory as it’s for use by local admins.]
pacman -Qo is the principle way of determining file ownership which can be used to find potentially orphaned files but you have to be careful about «ghost files», as in my previous post.
The general rule is that all files under / should be owned by a package, outside of ghost files other exceptions to this rule include /home, /usr/local, and the pseudo-filesystems such as /proc.
Last edited by Earnestly (2016-03-11 20:50:29)
I have attached part of the debug I get with yaourt. I am always getting this error past couple of days. I have installed the latest yaourt from aur.
- pacman_parse -Sp —print-format ‘## %n’ —noconfirm -u pacaur-git
- LC_ALL=C
- pacman —color never -Sp —print-format ‘## %n’ —noconfirm -u pacaur-git
error: target not found: pacaur-git - REFRESH=0
- DETAILUPGRADE=0
- (( ! DETAILUPGRADE ))
- (( REFRESH ))
- (( REFRESH>1 ))
- su_pacman -S -u pacaur-git
- pacman_queue
- [[ -f /var/lib/pacman//db.lck ]]
- launch_with_su pacman —color auto -S -u pacaur-git
- is_sudo_allowed pacman —color auto -S -u pacaur-git
- (( SUDOINSTALLED ))
- (( SUDONOVERIF ))
- (( SUDOREDIRECT ))
- _is_sudo_allowed pacman —color auto -S -u pacaur-git
- return 0
- sudo pacman —color auto -S -u pacaur-git
error: target not found: pacaur-git - return 1
- (( DEVEL ))
- analyse_status_list
- (( SHOWORPHANS ))
- local neworphans
++ LC_ALL=C
++ comm -13 /tmp/yaourt-tmp-mrez/orphans.15884 /dev/fd/63
+++ pkgquery -Qdtf %n —sort n
+++ package-query —aur-url https://aur.archlinux.org -Qdtf %n —sort n - neworphans=
- [[ -n » ]]
- [[ ! -n 0 ]]
- (( AUTOSAVEBACKUPFILE ))
- return
- cleanup
- local line
- for line in ‘»${CLEANUP[@]}»‘
- eval echo -ne ’33[0m’
++ echo -ne ’33[0m’ - for line in ‘»${CLEANUP[@]}»‘
- eval echo -ne ’33]0;xterm-256color07′
++ echo -ne ’33]0;xterm-256color07′ - for line in ‘»${CLEANUP[@]}»‘
- eval rm /tmp/yaourt-tmp-mrez/orphans.15884
++ rm /tmp/yaourt-tmp-mrez/orphans.15884
What is the yaourt command you run ?
If AUR/network is unavailable when you run yaourt -S aur-package, you can have this error message.
Something like: yaourt -Syu —noconfirm
I have a similar problem, but I definitely have network access and aur is available as well.
Yaourt is the latest version (1.7) from AUR.
$ LC_ALL=C yaourt codelite
1 aur/codelite 8.1-1 (109)
Open-source, cross platform IDE for the C/C++ programming languages
2 aur/codelite-bin 8.1-2 (17)
Open-source, cross platform IDE for the C/C++ programming languages
3 aur/codelite-git 8.0.1.r162.g36ea786-1 (10)
Open-source, cross platform IDE for the C/C++ programming languages
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> --------------------------------------------------------
==> 1
==> Downloading codelite PKGBUILD from AUR...
==> ERROR: codelite not found in AUR.
HelgeS, that’s interesting — your command is working fine for me:
$ yaourt codelite
1 aur/codelite 8.1-1 (109)
Open-source, cross platform IDE for the C/C++ programming languages
2 aur/codelite-bin 8.1-2 (17)
Open-source, cross platform IDE for the C/C++ programming languages
3 aur/codelite-git 8.0.1.r162.g36ea786-1 (10)
Open-source, cross platform IDE for the C/C++ programming languages
==> Enter n° of packages to be installed (ex: 1 2 3 or 1-3)
==> ——————————————————-
==> 1
==> Downloading codelite PKGBUILD from AUR…
x .SRCINFO
x PKGBUILD
Maybe it is because of the latest update but now it is working properly. Sorry for the late reply.
I am closing this now.
Ответ на:
комментарий
от ams0114 09.06.18 02:20:41 MSK
Ответ на:
комментарий
от anonymous 09.06.18 02:33:28 MSK
Ответ на:
комментарий
от ams0114 09.06.18 02:37:52 MSK
$ sudo путен -S нормальная зарплата
ошибка: не найдена цель: нормальная
ошибка: не найдена цель: зарплата
anonymous
(09.06.18 02:50:48 MSK)
- Показать ответ
- Ссылка
Такс
yaourt НЕ в официальных репозиториях
Он в АУРЕ либо же в кастомных
Вот решение ситуации
git clone https://aur.archlinux.org/yaourt.git && cd yaourt
makepkg -sri
Deleted
(09.06.18 02:54:01 MSK)
Последнее исправление: Deleted 09.06.18 02:55:11 MSK
(всего
исправлений: 1)
- Показать ответ
- Ссылка
Ответ на:
комментарий
от anonymous 09.06.18 02:50:48 MSK
смешно. просто все работало нормально. пользовался. потом перестал работать yaourt… в pacman.conf репозиторий есть. поэтому не знаю что делать
ams0114
(09.06.18 02:54:38 MSK)
- Ссылка
Ответ на:
комментарий
от ams0114 09.06.18 02:37:52 MSK
Ответ на:
комментарий
от xfilx 09.06.18 02:54:53 MSK
Чего вы накинулись
Со всеми же бывает
Да, не спорю. Маны нужно читать
Deleted
(09.06.18 02:55:25 MSK)
Последнее исправление: Deleted 09.06.18 02:55:52 MSK
(всего
исправлений: 1)
- Ссылка
Ответ на:
комментарий
от Deleted 09.06.18 02:54:01 MSK
спасибо. я просто загуглил и нашелся мануал в котором было написано вот так: Затем выполняем обновление репозиториев и установку yaourt с помощью команды:
# pacman -Sy yaourt
ну я типа и попробовал))
ams0114
(09.06.18 02:56:55 MSK)
- Показать ответ
- Ссылка
Ответ на:
комментарий
от ams0114 09.06.18 02:56:55 MSK
Ну, главное что попробовал
Все что лежит в ауре можно собирать руками без yaourt’ов всяких
Deleted
(09.06.18 02:57:49 MSK)
- Показать ответ
- Ссылка
Ответ на:
комментарий
от Deleted 09.06.18 02:57:49 MSK
Ответ на:
комментарий
от ams0114 09.06.18 02:59:01 MSK
А ещё, если будут проблемы со сборкой
sudo pacman -S base-devel git --needed
Установит нужные пакеты для компиляций без переустановки существующих
Deleted
(09.06.18 03:02:12 MSK)
Последнее исправление: Deleted 09.06.18 03:02:20 MSK
(всего
исправлений: 1)
- Ссылка
yaourt уже не рекомендуют использовать . Кури Вику .
anonymous
(09.06.18 03:34:58 MSK)
- Ссылка
Ответ на:
комментарий
от Shein 09.06.18 03:47:10 MSK
yaourt нет в официальных репозиториях. pacman качает пакеты только через репозитории, не с AUR.
xDShot ★★★★★
(09.06.18 10:20:00 MSK)
- Ссылка
Ответ на:
комментарий
от oster2011 09.06.18 09:31:55 MSK
yaourt умер
Ты умер
xDShot ★★★★★
(09.06.18 10:20:18 MSK)
- Ссылка
плюсую за yay. Он сейчас самый популярный, активно пилится, и сделан правильно (все пункты из archwiki зеленые). Умеет выводить список пакетов снизу вверх и задавать все вопросы в начале. Не вижу причин ставить что-то другое
anonymous
(09.06.18 10:47:12 MSK)
- Показать ответ
- Ссылка
Ответ на:
комментарий
от anonymous 09.06.18 10:47:12 MSK
Вот здрасьте, пользовался пользовался йогуртом (когда Арч еще был), а теперь узнаешь, что его оказывается выпилили. Как теперь доверять Арчу?
anonymous
(28.06.18 12:30:05 MSK)
- Показать ответ
- Ссылка
Ответ на:
комментарий
от anonymous 28.06.18 12:30:05 MSK
Pakku бери. Софт устаревает и его некому переписать, это нормально. Тем более что йогурт не был официальным никогда.
anonymous
(28.06.18 12:35:24 MSK)
- Ссылка
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.