You are not logged in.

#1 2024-06-21 21:31:03

jojo06
Member
Registered: 2023-11-04
Posts: 253

[SOLVED]Removing other repositories and its packages

I had multilib and multilib-testing on my pacman conf. When I was updating, I ran into problems. I uninstalled the downloaded packages like this:

sudo pacman -Rns $(pacman -Qdtq)

It was fine for a while, but now there are problems with the update again, and it's hard to delete manually and it felt too interconnected:

guns@roses ~ % sudo pacman -Syu
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing nettle (3.10-1) breaks dependency 'nettle=3.9.1' required by lib32-nettle
1 guns@roses ~ % sudo pacman -S nettle
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing nettle (3.10-1) breaks dependency 'nettle=3.9.1' required by lib32-nettle
1 guns@roses ~ % sudo pacman -Rsn lib32-nettle
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing lib32-nettle breaks dependency 'lib32-nettle' required by lib32-gnutls
:: removing lib32-nettle breaks dependency 'libnettle.so=8-32' required by lib32-gnutls
:: removing lib32-nettle breaks dependency 'libhogweed.so=6-32' required by lib32-gnutls
1 guns@roses ~ % sudo pacman -Rsn lib32-gnutls
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing lib32-gnutls breaks dependency 'lib32-gnutls' required by lib32-libcups
1 guns@roses ~ % sudo pacman -Rsn lib32-libcups
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing lib32-libcups breaks dependency 'lib32-libcups' required by lib32-gtk3
1 guns@roses ~ % sudo pacman -Rsn lib32-gtk3
checking dependencies...
:: wine optionally requires lib32-libcups

Packages (20) lib32-at-spi2-core-2.52.0-1  lib32-cairo-1.18.0-2  lib32-colord-1.4.7-1  lib32-fribidi-1.0.15-1
              lib32-gdk-pixbuf2-2.42.12-1  lib32-lcms2-2.16-1  lib32-libcanberra-1:0.30+r2+gc0620e4-2  lib32-libcups-2.4.8-1
              lib32-libdatrie-0.2.13-2  lib32-libepoxy-1.5.10-1  lib32-libltdl-2.5.0+1+g38c166c8-1  lib32-librsvg-2:2.58.1-1
              lib32-libthai-0.1.29-2  lib32-libtiff-4.6.0-2  lib32-libxdamage-1.1.6-1  lib32-libxft-2.3.8-1
              lib32-pango-1:1.54.0-1  lib32-pixman-0.43.4-1  lib32-tdb-1.4.10-1  lib32-gtk3-1:3.24.42-1

Total Removed Size:  21.74 MiB

:: Do you want to remove these packages? [Y/n] ^C

Tried to enable and update the repos and uninstall the packages like this :
pacman -R `LANG=C pacman -Sl multilib | grep installed | cut -d ' ' -f 2`

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing lib32-zlib breaks dependency 'lib32-zlib' required by lib32-nvidia-utils-beta
:: removing lib32-libglvnd breaks dependency 'lib32-libglvnd' required by lib32-nvidia-utils-beta
:: removing wine breaks dependency 'wine' required by wine-mono

How can I remove/uninstall other repos?


Related thread: https://bbs.archlinux.org/viewtopic.php?id=170004
____________
Geeking:
I would also like to ask why it is causing problems and how can I use and benefit from these repos only in terms of their packages?

[repoName]
SigLevel = Optional TrustAll
Server = https://URL

That will do the trick or not ?

Last edited by jojo06 (2024-06-25 12:54:18)

Offline

#2 2024-06-21 23:41:30

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,145

Re: [SOLVED]Removing other repositories and its packages

You're on the right track, the only thing you missed was removing multilib packages you have installed from the AUR. Do that before you do the other remove.

For the last question, I don't understand what you mean.

Last edited by Scimmia (2024-06-21 23:42:23)

Offline

#3 2024-06-22 21:00:17

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

Thank you for your reply @Scimmia. I thought Yay packages were downloaded from github etc. or core/extra but unsupported packages, so how can I remove them?

What I wanted to ask in the last question was that when I tried to install a package manually *from multilib*, the system did automatically `downgrade`. The problem I see here is when other repos (multilib etc.) are more recent than the main system. And/or vice versa. Core/extra may be more up to date. So it gave me `package is newer than otherRepo`
Is there any possibility to not look at the version/update of multilib and other repos and only use their packages (like external disk-usb) AND/OR not include them in updates OR if they can be updated, update them or ignore them? Otherwise i cant use them because its blocking my system update.

Offline

#4 2024-06-22 21:53:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,145

Re: [SOLVED]Removing other repositories and its packages

Not a single thing you said in that post makes any sense whatsoever. Start here: https://wiki.archlinux.org/title/Arch_User_Repository to figure out what the AUR is and how it works. After that, realize that packages are not in more than one repo, testing notwithstanding.

Offline

#5 2024-06-24 00:23:54

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

I read it but I didn't find what I was looking for, so I guess what I want is not doable. I was going to ask how to use multilib, multilib-testing without conflicting updates..., but I enabled a different `unsupported` repo its not about multilib. It just occurred to me. So back to the original question, how do I remove packages installed from this repo?

I saw this from the link you sent and tried it:

pacman -R $(comm -12 <(pacman -Qq | sort) <(pacman -Slq multilib | sort))

Output and the problem is the same

Offline

#6 2024-06-24 00:49:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED]Removing other repositories and its packages

If the "other repos" you are referring to are the result of running the blackarch script as root, they you're pretty much SOL.  Either ask the black arch people, or just reinstall your system from scratch and learn from the mistake.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2024-06-24 02:49:01

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

Trilby wrote:

If the "other repos" you are referring to are the result of running the blackarch script as root, they you're pretty much SOL.  Either ask the black arch people, or just reinstall your system from scratch and learn from the mistake.

Oh man sad Im not sure blackarch that's causing problems. Because I removed multilib and multilib testing repos from conf. I was able to update for a few time but the same problem still exists.

I was getting a warning that `package_name is newer than blackarch`. Now im not seeing that warning. IF the problem is that it was run with `sudo`, how can I access the commands I entered in the terminal a few days ago?

EDIT: I was able to update with all repos active and in use. But I don't understand what happened to the packages that were causing problems before. Or have they been fully updated or are there packages that are `skipped`?

Last edited by jojo06 (2024-06-24 03:00:43)

Offline

#8 2024-06-24 10:03:32

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,008

Re: [SOLVED]Removing other repositories and its packages

jojo06 wrote:

Because I removed multilib and multilib testing repos from conf

testing repos are all or nothing : you did have core-testing and extra-testing enabled also ?


Off-topic

jojo06 wrote:

Im not sure blackarch that's causing problems.

that's about as rare as seeing a griffin in RL .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2024-06-24 15:08:27

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

Lone_Wolf wrote:
jojo06 wrote:

Because I removed multilib and multilib testing repos from conf

testing repos are all or nothing : you did have core-testing and extra-testing enabled also ?


Off-topic

jojo06 wrote:

Im not sure blackarch that's causing problems.

that's about as rare as seeing a griffin in RL .

No, core-testing and extra-testing are not enabled.

Offline

#10 2024-06-25 00:33:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,008

Re: [SOLVED]Removing other repositories and its packages

For future attempts :

https://wiki.archlinux.org/title/Official_repositories#Testing_repositories wrote:

If you enable any other testing repository listed in the following subsections, you must also enable both core-testing and extra-testing.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#11 2024-06-25 01:38:57

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

Lone_Wolf wrote:

For future attempts :

https://wiki.archlinux.org/title/Official_repositories#Testing_repositories wrote:

If you enable any other testing repository listed in the following subsections, you must also enable both core-testing and extra-testing.

Ok, i enabled them. So is this correct ?: Blackarch repo is the problem. But anyways (idk it will be smart or not) how can i remove the packages installed from multilib and multilib-testing ?

Offline

#12 2024-06-25 01:51:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED]Removing other repositories and its packages

jojo06 wrote:

Blackarch repo is the problem

No, the problem is that you had some, but not all testing repos enabled which resulted in partial upgrades.

I'd personally advise against using the blackarch repo - but strictly speaking it should be fine if and only if you actually added the repo yourself to your pacman.conf.  But if you instead ran the blackarch distro's installation script as root, then 1) you are no longer running arch and shouldn't seek help here, and 2) you should assume your system is compromised.

The first thing black arch teaches about "penetration testing" is how to be a victim.  If you ran their script as root, you are a victim, and your system has been penetrated.  Hence my previous advice to reinstall from scratch.  But the actual errors you posted in this thread have a proximate cause of partial upgrades from having some but not all testing repos enabled (which may well have been done by the black arch script, who knows).

Last edited by Trilby (2024-06-25 01:53:02)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#13 2024-06-25 10:25:56

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

Trilby wrote:
jojo06 wrote:

Blackarch repo is the problem

No, the problem is that you had some, but not all testing repos enabled which resulted in partial upgrades.

I'd personally advise against using the blackarch repo - but strictly speaking it should be fine if and only if you actually added the repo yourself to your pacman.conf.  But if you instead ran the blackarch distro's installation script as root, then 1) you are no longer running arch and shouldn't seek help here, and 2) you should assume your system is compromised.

The first thing black arch teaches about "penetration testing" is how to be a victim.  If you ran their script as root, you are a victim, and your system has been penetrated.  Hence my previous advice to reinstall from scratch.  But the actual errors you posted in this thread have a proximate cause of partial upgrades from having some but not all testing repos enabled (which may well have been done by the black arch script, who knows).

Oh hell ! I did not know that. I want to use Arch, I thought that running the script only installs the repo. I even thought that blackarch is an extension of Arch. How could my system have been penetrated? More importantly, how can I list all the terminal commands I have run up to 5 days ago?

I hope its that mean i did not run as sudo:

guns@roses ~ % sudo journalctl | grep "sudo strap.sh"
1 guns@roses ~ % sudo journalctl | grep "strap.sh"
Jun 12 01:08:07 roses sudo[27262]:     guns : TTY=pts/2 ; PWD=/home/guns ; USER=root ; COMMAND=./strap.sh

I remember, i ran with normally and for checking and/or some errors i tried with sudo and i stop/break the command with CTRL + C. Or maybe reverse, i dont remember well.

Last edited by jojo06 (2024-06-25 11:09:43)

Offline

#14 2024-06-25 11:33:20

Awebb
Member
Registered: 2010-05-06
Posts: 6,621

Re: [SOLVED]Removing other repositories and its packages

Depending on your shell and settings, a history of shell commands should be accessible with "history".

Offline

#15 2024-06-25 12:03:09

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

It only showed today's ones

Offline

#16 2024-06-25 12:23:14

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED]Removing other repositories and its packages

jojo06 wrote:

I thought that running the script only installs the repo.

You assumed this.  But why look into black arch if you're not interested in security?  And if you are interested in security, assuming some huge script randomly downloaded from the internet is safe, and then blindly running it as root ... well, clearly you're not that interested in security.

If you are interested in security / penetration testing, all the blackarch tools are available in the AUR.  I'd recommend building the ones you want to learn about / use from the AUR.

jojo06 wrote:

I even thought that blackarch is an extension of Arch.

Extension in that it builds on an arch linux base, sure - just like manjaro, or any other of a dozen or so different distros.  But extension as in it's supported or has any official connection with this community's devs or staff: no, not at all.

jojo06 wrote:

How could my system have been penetrated?

You ran a random unknown script as root.  It could have been penetrated in every single way possible.  That doesn't mean it was, but there's no way to know - that's the point.  I can't tell you exactly what damage it did, or even for certain that it did any damage, but neither can you (which is also the point: we have no idea what was done).

Certainly the black arch people think this is safe for new users to do.  And that in itself tells me they know absolutely nothing about security: why would you want to learn from them?

jojo06 wrote:

how can I list all the terminal commands I have run up to 5 days ago?

Generally speaking, you can't.  There is no permanent record of shell commands other than the shell history which is 1) typically quite limited in depth / duration, and 2) sometimes quite fallible if you have multiple terminals open at the same time.  Shell history settings can be configured to be more reliable and long term - but this is not a default.

Last edited by Trilby (2024-06-25 12:27:17)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#17 2024-06-25 12:54:05

jojo06
Member
Registered: 2023-11-04
Posts: 253

Re: [SOLVED]Removing other repositories and its packages

Thanks everyone for your help. I make sure `sadly` i ran with sudo command from zsh_history. Will be safe to copy /home and after fresh install use that /home ? For not lose any data/cookies/pws and such ?

Last edited by jojo06 (2024-06-25 13:06:33)

Offline

Board footer

Powered by FluxBB