Can't update or install software - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120) +--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121) +---- Forum: Arch Linux on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=159) +---- Thread: Can't update or install software (/showthread.php?tid=14949) |
RE: Can't update or install software - bcnaz - 09-26-2021 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". RE: Can't update or install software - P3TER - 09-26-2021 (09-26-2021, 03:43 PM)bcnaz Wrote: There are many methods and software Apps available to "restore" your system.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? 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. RE: Can't update or install software - kqlnut - 09-27-2021 (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. 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] $repo needs to be replaced with the respective section heading, so in the case of [core] like this: Code: [core] 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 RE: Can't update or install software - susy1075 - 11-12-2021 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? RE: Can't update or install software - RonaMacGuffin - 11-18-2021 Is it /var/lib/pacman/db.lck ? Renamed to db.lck.bak or just deleted? RE: Can't update or install software - 7horns7eyes - 11-19-2021 (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. I try all above but no change. Not such a command and so on.. RE: Can't update or install software - RonaMacGuffin - 11-22-2021 (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? 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 RE: Can't update or install software - bcnaz - 11-23-2021 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. RE: Can't update or install software - 7horns7eyes - 11-23-2021 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. RE: Can't update or install software - pinyon67 - 11-28-2021 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! |