Can't update or install software
#21
There are many methods and software Apps available to "restore" your system.

But at this point I was assuming you just want to "install" a system that works..?

but maybe you are mixing installation methods and restore methods ?

For a basic installation,  everything your phone needs to operate should be on the 'downloaded' image..
( It does NOT have saved information it needs from previous installs)
For sake of simplicity,  I suggest trying Mobian or Manjaro 'Phosh',  ... download a recent release,
    ...  use Balena Etcher to flash the image to a 16 or 32gb sd card.
put that sd card into your phone and try 'booting' from that.

When you do boot into a new system, the first time it will take a little longer to boot - as it will "Resize" your image to use the whole sd card.

Next check that you have made all the correct entries in "Settings"  including the choices in  'Regions & Languages' and your wifi information.
  (Need to put at least one good/working phone number into your 'Contacts' - using format: country code > area code > Phone number - for testing calls)
and you will need accurate information to correctly fill-in your APN information, for cellular data use.

Then do your updates, they should work directly from the software store, *(this does require an internet connection)
***  Only -  If the semi-automatic store updates do not work, * then try to install the Gnome package updater, and do updates  from there.
"Re-start your phone"  ** ( I let the timer 'time-out' instead of clicking on the option to instantly restart)
You should now be able to call and sms text

I think it would be easiest for you to do the sd card installation first, 
* AFTER  you have succeeded with the sd card,
  ***  it should be simpler for you to install to the phones eMMC later.

*** I suggest doing all the settings first, *  as a wrong or unmade choice can possibly  affect your ability to download updates.

There are a multitude of different methods that will work, * but the steps are not all inter-changeable.
 I chose Mobian and Manjaro OSes as I think your odds  for out of the box success, ... are best with those.
  ***(I would pick Arch over Manjaro personally, but sometimes Arch needs to be tweaked 'out of the box') 
For Test purposes the 16 & 32gb micro-sd cards work very well, *But you can use from 8gb to 2Tb micro-sd cards.
When I first started playing with the Pine Products (Pinebook Pro) I used an old Dell laptop with Ubuntu on it,  as that was easiest
for me to install a working copy of Balena Etcher on.
Since then,  I have had a 99+% success rate using Balena Etcher to do hundreds of micro-sd card flashes.
  Using the sd cards is great,  you can swap sd cards in about a minute to compare different OSes, or just different releases.

** There are a Lot of very smart members here on the forum, but sometimes their explanations are a bit too technical for us GUI users.
   As a GUI user I have been extremely successful in making my Pine products work.
See the thread  'Bookworm'  for some of my recent Mobian OS test results, * which recent releases work or do not work "Out of the Box".
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply
#22
(09-26-2021, 03:43 PM)bcnaz Wrote: There are many methods and software Apps available to "restore" your system.

But at this point I was assuming you just want to "install" a system that works..?

but maybe you are mixing installation methods and restore methods ?

For a basic installation,  everything your phone needs to operate should be on the 'downloaded' image..
( It does NOT have saved information it needs from previous installs)
For sake of simplicity,  I suggest trying Mobian or Manjaro 'Phosh',  ... download a recent release,
    ...  use Balena Etcher to flash the image to a 16 or 32gb sd card.
put that sd card into your phone and try 'booting' from that.

When you do boot into a new system, the first time it will take a little longer to boot - as it will "Resize" your image to use the whole sd card.

Next check that you have made all the correct entries in "Settings"  including the choices in  'Regions & Languages' and your wifi information.
  (Need to put at least one good/working phone number into your 'Contacts' - using format: country code > area code > Phone number - for testing calls)
and you will need accurate information to correctly fill-in your APN information, for cellular data use.

Then do your updates, they should work directly from the software store, *(this does require an internet connection)
***  Only -  If the semi-automatic store updates do not work, * then try to install the Gnome package updater, and do updates  from there.
"Re-start your phone"  ** ( I let the timer 'time-out' instead of clicking on the option to instantly restart)
You should now be able to call and sms text

I think it would be easiest for you to do the sd card installation first, 
* AFTER  you have succeeded with the sd card,
  ***  it should be simpler for you to install to the phones eMMC later.

*** I suggest doing all the settings first, *  as a wrong or unmade choice can possibly  affect your ability to download updates.

There are a multitude of different methods that will work, * but the steps are not all inter-changeable.
 I chose Mobian and Manjaro OSes as I think your odds  for out of the box success, ... are best with those.
  ***(I would pick Arch over Manjaro personally, but sometimes Arch needs to be tweaked 'out of the box') 
For Test purposes the 16 & 32gb micro-sd cards work very well, *But you can use from 8gb to 2Tb micro-sd cards.
When I first started playing with the Pine Products (Pinebook Pro) I used an old Dell laptop with Ubuntu on it,  as that was easiest
for me to install a working copy of Balena Etcher on.
Since then,  I have had a 99+% success rate using Balena Etcher to do hundreds of micro-sd card flashes.
  Using the sd cards is great,  you can swap sd cards in about a minute to compare different OSes, or just different releases.

** There are a Lot of very smart members here on the forum, but sometimes their explanations are a bit too technical for us GUI users.
   As a GUI user I have been extremely successful in making my Pine products work.
See the thread  'Bookworm'  for some of my recent Mobian OS test results, * which recent releases work or do not work "Out of the Box".
I have Mobian/Phosh installed at the moment, and all the updates and stuff went smoothly enough, but I really want to run Arch because it seems lighter and snappier. It impressed me right out of the box. Super ironic that what seems to me like the best distro is the only one I've tried that I can't seem to update. Still, kqlnut seems to have a good handle on the command line stuff, so if he can tolerate my ignorance for long enough I think we might find a solution. I'm going to reinstall Arch and keep plugging away at the problem, partly for the challenge and partly because I like the way it runs.

(09-25-2021, 03:05 AM)kqlnut Wrote:
(09-24-2021, 09:38 PM)P3TER Wrote: I have a theory on what happened. So, during the initial boot it says swap failed, and it couldn't read the who-am-i register. I think this is a security thing Arch does to recognise the phone before allowing it to download software. Problem is, I bricked the original OS, so if there was any swapping of info that needed to be done when I loaded the next OS, it didn't happen. So it looks for the who-am-i register, doesn't find it, and because it's missing, it prevents downloading software. So I think what needs to happen is I have to figure out a way to repair the who-am-i register. What do you think, is that possible?

No, I'm sorry, this is not how it works. Just making up things that could somehow explain something is not any basis to solve this or any problem. A swap partition is a bit like RAM on a hard drive and has nothing to do with security or software updates. You don't 'brick' your OS with a missing internet connection or something failing in your boot process and neither does pacman stop working if you didn't wipe your SD card with zeros before flashing an image. A very specific problem like pacman not resolving mirrors is nothing that would be the cause by a faulty flashing process.

Pacman and almost every other command is verbose, you get informed about what's happening. Use this information to solve problems. Pacman informed you that it wasn't able to resolve the mirrors. So the next logical step would be to find out if other mirrors can be resolved. If so, it was a problem with the mirror, so most likely nothing on your side. If not, then pacman might have a problem on your side and you can investigate further from there.

Instead of making wild guesses and basing assumptions upon that, which will not help problem solving at all, try looking up everything you don't understand, at least superficially. It will be a lot in the beginning and might seem daunting, but you will get the hang of how things work and that will get you much farther.

Thanks for your reply. If you're willing to help me solve this I'll be happy to follow your instructions. The only thing is, I'm really new to doing command line stuff, so things that seem obvious to you go right over my head. When it comes to entering commands you really have to spell it out like I'm a complete moron or I won't get it.
  Reply
#23
(09-26-2021, 05:14 PM)P3TER Wrote: Thanks for your reply. If you're willing to help me solve this I'll be happy to follow your instructions. The only thing is, I'm really new to doing command line stuff, so things that seem obvious to you go right over my head. When it comes to entering commands you really have to spell it out like I'm a complete moron or I won't get it.

Sure. Open a terminal window and follow the steps below. Everything preceded by a # is a comment and should not be entered as a command. Doing this on a big screen either with an external screen attached or via SSH makes it a lot easier, but you could also type it all on the phone itself. Selected text in a terminal window can be copied with Ctrl+Shift+C and pasted with Ctrl+Shift+V (you need to use an external keyboard for this, I suggest you use one).
Code:
# Show the contents of the file where possible mirrors are listed. I don't have Arch installed, so I'm not sure what's here, but there should be some different URLs. Copy or remember one of them.
cat /etc/pacman.d/mirrorlist

# Edit pacman's configuration to use a specific mirror.
sudo nano /etc/pacman.conf
This will open the file in the nano text editor. Instructions on how to use the editor are shown on the bottom of the screen (the carat symbol ^ stands for Ctrl, so ^X would be Ctrl+X for example).
The file will have multiple sections, each with a heading in brackets like [core], [extra] etc. All those sections are for different repositories that contain different types of packages (core for core system functionality e. g.).
A mirror is a server that has all those repos in different folders under some domain. For example: https://somedomain.org/somesubdomain/$repo/os/$arch
Words preceded by a $ are usually variables or, more generally, placeholders. So in this case of a mirror URL $repo is a placeholder for the sections mentioned above (core, extra, ...). $arch is placeholder for the architecture and should be defined elsewhere in the configuration file, you don't have to worry about it.
Under each section heading (like [core]) insert a new line like so:
Code:
[section]
Server = https://somedomain.org/somesubdomain/$repo/os/$arch

$repo needs to be replaced with the respective section heading, so in the case of [core] like this:
Code:
[core]
Server = https://somedomain.org/somesubdomain/core/os/$arch

Do this for all the sections (core, extra, community, alarm, aur). Save and close the file.

Force pacman to update the package database. This will use the new mirror you specified.
Code:
sudo pacman -Syy

Now check what the output of the command shows.

Generally, if you don't know what something does, look it up. It's the best way to learn. You will find helpful results quickly with the search engine of your choice. Also man pages are very helpful, they document what a command and all its options do, how to use it and often include examples as well. You can read a man page for command in the terminal like this (replace command with the command you are curious about):
Code:
man command
  Reply
#24
Hello I am new to Linux but I purchased this phone because I am a stalking victim….

However I can’t update it nor install apps.  

My phone calls are all static…

Can’t anyone help me?
  Reply
#25
Is it /var/lib/pacman/db.lck ? Renamed to db.lck.bak or just deleted?
  Reply
#26
(11-18-2021, 06:14 AM)RonaMacGuffin Wrote: Is it /var/lib/pacman/db.lck ? Renamed to db.lck.bak or just deleted?

Hi! Can you pls. write a full command, because many of us are at very "high levels" in linux.  Big Grin

I try all above but no change.
Not such a command and so on..
  Reply
#27
(11-19-2021, 11:25 PM)7horns7eyes Wrote:
(11-18-2021, 06:14 AM)RonaMacGuffin Wrote: Is it /var/lib/pacman/db.lck ? Renamed to db.lck.bak or just deleted?

Hi! Can you pls. write a full command, because many of us are at very "high levels" in linux.  Big Grin

I try all above but no change.
Not such a command and so on..

Rename with

sudo mv /var/lib/pacman/db.lck /var/lib/pacman/db.lck.bak

Or delete with

sudo rm /var/lib/pacman/db.lck
  Reply
#28
I just downloaded and flashed the latest release with Phosh desktop to an sd card and it is able to do 'updates' from the software store.
AND download my choice of apps from the store.

Smile
      LINUX = CHOICES
         **BCnAZ**
               Idea
   Donate to $upport
your favorite OS Team
  Reply
#29
Hi!
After i write it - it show this:
mv: cannot start `/var/lib/pacman/db.lck`: No such file or directory

However i just was able to install 1 app, after that all return to old situation. Not able to install anything and no update.
  Reply
#30
I had a problem updating my PP Beta manjero and noticed an error message "could not lock database".
There was a post in this forum that I remembered mentioned a file used as a lock, I located it, and renamed:

mv /var/lib/pacman/db.lck /var/lib/pacman/dbBU.lck

and then executed

sudo pacman -Syu

and my update ran smooth as silk!
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone with KDE Plasma stuck at K logo after update Daniello 0 236 06-20-2024, 01:52 AM
Last Post: Daniello
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 3,445 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 1,455 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 2,873 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  PPKB certain keys not working after kernel update ragreenburg 20 16,099 06-11-2023, 03:19 AM
Last Post: lectrode
  unable to install applications dln949 5 2,314 06-08-2023, 08:38 PM
Last Post: Conjada
  satellite doesn't work after update shulamy 1 1,242 05-17-2023, 10:34 PM
Last Post: Kevin Kofler
  Latest update broke my install user641 8 4,833 02-22-2023, 05:54 AM
Last Post: gregb49
  new to pacman. Trying to install VIM, getting a 404 when it tries to download. willyray 1 1,514 12-24-2022, 11:00 PM
Last Post: shulamy
  Waydroid on Arch Linux ARM install guide? tk1107 3 6,450 10-08-2022, 07:46 AM
Last Post: PineFone

Forum Jump:


Users browsing this thread: 2 Guest(s)