You are not logged in.

#1 2025-02-06 13:44:51

slikan
Member
Registered: 2017-10-22
Posts: 7

Copy packages that containas invalid characters

Hello everyone, im trying to copy all packages located in /var/cache/pacman/pkg to a usb stick to perform an offline install, the problem is that some of the packages contains characters like colons which outputs 'invalid argument'.

Any thoughts?

Thanks in advance!

Offline

#2 2025-02-06 13:51:30

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

Re: Copy packages that containas invalid characters

Use a Linux filesystem, not a Windows one.

Offline

#3 2025-02-06 14:34:39

slikan
Member
Registered: 2017-10-22
Posts: 7

Re: Copy packages that containas invalid characters

What makes you assume I'm using windows? , I'm actually re-installing arch, working from a bootable usb.

Offline

#4 2025-02-06 14:57:41

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,644
Website

Re: Copy packages that containas invalid characters

So what is complaining about 'illegal characters'? That usually means that you're using a Windows filesystem (FAT/NTFS) which don't support characters like ':' and '?'. Linux filesystems like ext4 and xfs have no problem with these characters.


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.

Offline

#5 2025-02-06 16:23:22

slikan
Member
Registered: 2017-10-22
Posts: 7

Re: Copy packages that containas invalid characters

Try to copy any file that contains a colon in its name with cp and let me know how its goes for you, guess im in the wrong forum.

Offline

#6 2025-02-06 16:28:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,096

Re: Copy packages that containas invalid characters

Why are you being so snappy and defensive? What filesystems are you dealing with, you're claiming something doesn't work that no one can reproduce, you need to post your commands and your outputs and your target locations. We don't have a problem, you have and the more you refuse to disclose information and having an attitude while doing so will make it very unlikely for anyone being inclined to help you.

Also... proof

touch "thisfilehasa:colon"
mkdir test
cp thisfilehasa:colon test/
ls test/   
thisfilehasa:colon

You should generally assume that if experienced people tell you this is related to the FS you're dealing with -- chances are it's related to the FS you're dealing with.

Also no one said you're using Windows, but that you're using a filesystem originating from there. Standard USB sticks come preformatted with FAT the vast majority of the time as it's simple and supported everywhere. If you want to copy packages from pacman you need a linux filesystem: https://wiki.archlinux.org/title/File_s … ile_system

Last edited by V1del (2025-02-06 16:39:08)

Offline

#7 2025-02-06 16:52:03

slikan
Member
Registered: 2017-10-22
Posts: 7

Re: Copy packages that containas invalid characters

I'm using ext4, what it could be then?

Offline

#8 2025-02-06 16:57:39

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,096

Re: Copy packages that containas invalid characters

where? On your internal disk as well as the USB? Post the outputs of

lsblk -f
fdisk -l
mount

and your exact command and it's exact output in [code][/code]  tags.

Offline

#9 2025-02-06 17:14:05

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

Re: Copy packages that containas invalid characters

slikan wrote:

What makes you assume I'm using windows? , I'm actually re-installing arch, working from a bootable usb.

If there's an issue with 'invalid characters' like the title claims, it can only be because you're using a Windows filesystem. If, on the other hand, you're making wild assumptions about what the problem is instead of giving actual commands and errors, well then you gave us nothing to work with. We can only go by what you said, and those characters are not invalid on Linux.

Offline

#10 2025-02-06 17:19:13

slikan
Member
Registered: 2017-10-22
Posts: 7

Re: Copy packages that containas invalid characters

I cant post the extact output since its in another computer, I formated the disk using ext4, but I can see the usb was formated with vfat, guess that was the problem, my mistake. Since I  chrooted while trying to copy the files I assumed the FS I was using was the ext4. Thank you again.

Last edited by slikan (2025-02-06 17:20:46)

Offline

Board footer

Powered by FluxBB