I can't install anything

Apparently, I started installing something wrong, I don’t remember what, and now every time I install something, it gives me

timeshift: '/usr/share/metainfo/timeshift.appdata.xml ' exists in the file system
timeshift: '/usr/share/pixmaps/timeshift.png' exists in the file system
timeshift: '/usr/share/polkit-1/actions/in.teejeetech.pkexec.timeshift.policy' exists in the file system
Errors detected, packages not updated.

exists in the file system!!!
What to do about it?
How do I install anything???

System:
  Kernel: 6.11.11-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: acpi_pm
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.11-x86_64
    root=UUID=d7cee9aa-3f30-4ae6-a561-340e87bcbd59 rw quiet
    cryptdevice=UUID=cf283cc2-79db-41e1-bd0c-dfae96dd2873:luks-cf283cc2-79db-41e1-bd0c-dfae96dd2873
    root=/dev/mapper/luks-cf283cc2-79db-41e1-bd0c-dfae96dd2873 splash
    udev.log_priority=3
  Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A info: frameworks v: 6.8.0
    wm: kwin_x11 vt: 2 dm: SDDM Distro: Manjaro base: Arch Linux
Machine:
  Type: Laptop System: HONOR product: BRN-FXXC v: M1010
    serial: <superuser required>
  Mobo: HONOR model: BRN-FXXC-PCB v: M1010 serial: <superuser required>
    part-nu: C170 uuid: <superuser required> UEFI: HONOR v: 1.00 date: 10/09/2023
CPU: 8-core (4-mt/4-st) 12th Gen Intel Core i5-12450H (-MST AMCP-)
speed/min/max: 683/400/4400:3300 MHz Kernel: 6.11.11-1-MANJARO x86_64
Up: 2h 4m Mem: 4.45/15.35 GiB (29.0%) Storage: 476.94 GiB (26.5% used)
Procs: 290 Shell: Zsh inxi: 3.3.36

Mod edit: I’ve done thew formatting for you, but in the future, please do it correctly: [HowTo] Post command output and file content as preformatted text

Hi @tor, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Please also note and heed: Forum Rules - Manjaro

Hope you manage!


:bangbang: Tip for legibility: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.

Note that the above text is partially pre-prepared as a general introduction for new forum Users. Please take the time to follow links given and learn how to create effective Support requests and encourage quality responses.

Try:

sudo pacman-mirrors --geoip
sudo pacman -S --overwrite \* timeshift
sudo pacman -Syu

Afterwards review the timeshift settings, again.

2 Likes

Yes,now there is no problem with timeshift, but installing yay and other programs returns the same ay:'/usr/share/locale/uk/LC_MESSAGES/yay.mo' exists in the file system yay: '/usr/share/locale/zh_CN/LC_MESSAGES/yay.mo' exists in the file system yay: '/usr/share/locale/zh_TW/LC_MESSAGES/yay.mo' exists in the file system yay: '/usr/share/man/man8/yay.8.gz ' exists in the file system yay: '/usr/share/zsh/site-functions/_yay' exists in the file system Errors have been detected, packages have not been updated.

Let’s go the nuclear option:

Note:

This is very dangerous and can wreck your system.

sudo pacman -Syu --overwrite \* 

…cut since your system isn’t working at the moment, it’s already sort-of wrecked, correct? Still, be careful.

[sudo] password for tor:
:: Updating package databases...
main updated
, additional updated
, multi-library updated
:: A full system update is being launched...
there is nothing more to do```
It didn't work anyway

OK, this doesn’t look right. You won’t be able to install anything. Please provide the output of:

cat /etc/pacman.conf
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg      = pacman glibc manjaro-system
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
# We cannot check disk space from within a chroot environment
CheckSpace
#VerbosePkgLists
ParallelDownloads = 4

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Manjaro Linux
# packagers with `pacman-key --populate archlinux manjaro`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

[multilib]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

That looks OK. So it’s possible something went missing in translation somewhere.

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

So please provide the complete, unchanged output of the following:

LC_ALL=C sudo pacman -Syu --overwrite \*

That’s not the output I asked for…

Sorry, try again.
[sudo] password for tor: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

Hmmm…let’s try the following"

LC_ALL=C sudo pacman -Syu --overwrite='*'

The complete output again please.

 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
 there is nothing to do

OK, everything looks good, so reboot and try installing something again, but this time add the prefix for the translation to it:

LC_ALL=C <theCommand>

and provide the output here.

LC_ALL=C sudo pacman -S yay   
yay: /usr/share/locale/de/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/en/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/es/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/eu/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/fr_FR/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/he/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/id/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/it_IT/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/ja/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/ko/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/pl_PL/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/pt/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/pt_BR/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/ru/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/ru_RU/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/sv/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/tr/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/uk/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/zh_CN/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/locale/zh_TW/LC_MESSAGES/yay.mo exists in filesystem
yay: /usr/share/man/man8/yay.8.gz exists in filesystem
yay: /usr/share/zsh/site-functions/_yay exists in filesystem
Errors occurred, no packages were upgraded.
there are still a lot of files

Do that again, but this time add the --overwrite argument:

LC_ALL=C sudo pacman -S yay --overwrite='*'

Yeeees!!! now it has been established. Why doesn’t it work as standard?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.