Now I’m confused - where does the different user name come from?
Patience is my computer, Alexandra is my admin name.
… but it was persephone before …?
I have reappeared as admin in the manjaro settings manager, I thinks I’m all good, thanks you all!
Persephone is my name on the forum only
I thought that was the result of:
cat /etc/passwd-
As long as you can now open a new terminal and gain root (su
or sudo
) all should be well again.
Just because of gobbledy-gook-pasting
I had suggested that their single line should appear similar to that based off of their profile name here.
Somehow that later got copied and used as a command, before something to actually read the file was used.
Now the file appears as
Which is apparently correct for their system/user.
[quote=“cscs, post:7, topic:170717”]
cat /etc/passwd
Edit removed output
No need to post the whole thing.
If that was and is your user name, then all is well again.
And it would appear you are back where you should be, but before the pacnew.
I dont know if you removed that already or not.
Similar to the original suggestion with sudo
you may be able to regain a pacnew by reinstalling the filesystem
package.
Or we could just point out that the difference is the line
root:x:0:0::/root:/bin/bash
should be
root:x:0:0::/root:/usr/bin/bash
And you can make that edit, or ignore it, and move on.
(in this case on manjaro/arch /bin
is symlinked to /usr/bin
so it wont really matter…)
[sudo] password for alexandra:
:: Synchronizing package databases…
error: failed to synchronize all databases (unexpected error)
I still dont have access to pacman?
… can you get root in a new terminal?
That does not appear to be a lack of access (you are prompted for password and pacman continues but fails).
I would reiterate the original steps;
(you do need sudo now if you have exit
ed from su
)
Yes, that is what I did, sorry left off the top line.
Trying that now, sorry the mirrrors are taking a minute
I’m still getting unexpected error after doing all that.
I can see in the GUI that pacman is installed. Would it help to uninstall using the GUI and reinstall?
Maybe more .pacnew
fallout? What are the contents of /etc/pacman.conf
cat /etc/pacman.conf
When you post the result, please format the text by using the “Preformatted text” </>
button above the text entry area of the forum.
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
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 4
DownloadUser = alpm
#DisableSandbox
#ILoveCandy
# 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 Arch and 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.
#
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
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]
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``
I ran a small update yesterday, too, using the pamac GUI that as I recall had an update to pacman, not sure if that is relevant.
Hm. That file seems OK.
Some more digging.
ls -la /etc/pacman.d/
cat /etc/pacman.d/mirrorlist
And we may get more info from the verbose flag;
sudo pacman -Syuv