Can't update or install software
#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


Messages In This Thread
Can't update or install software - by P3TER - 09-23-2021, 08:17 PM
RE: Can't update or install software - by bcnaz - 09-23-2021, 11:31 PM
RE: Can't update or install software - by P3TER - 09-24-2021, 01:51 AM
RE: Can't update or install software - by bcnaz - 09-24-2021, 08:46 PM
RE: Can't update or install software - by P3TER - 09-24-2021, 09:38 PM
RE: Can't update or install software - by bcnaz - 09-24-2021, 09:48 PM
RE: Can't update or install software - by P3TER - 09-24-2021, 10:00 PM
RE: Can't update or install software - by kqlnut - 09-25-2021, 03:05 AM
RE: Can't update or install software - by kqlnut - 09-23-2021, 11:50 PM
RE: Can't update or install software - by P3TER - 09-24-2021, 04:09 AM
RE: Can't update or install software - by kqlnut - 09-24-2021, 10:30 AM
RE: Can't update or install software - by bcnaz - 09-23-2021, 11:56 PM
RE: Can't update or install software - by P3TER - 09-24-2021, 02:10 PM
RE: Can't update or install software - by P3TER - 09-24-2021, 05:33 PM
RE: Can't update or install software - by kqlnut - 09-24-2021, 06:48 PM
RE: Can't update or install software - by bcnaz - 09-25-2021, 02:17 AM
RE: Can't update or install software - by P3TER - 09-25-2021, 04:03 AM
RE: Can't update or install software - by bcnaz - 09-25-2021, 12:40 PM
RE: Can't update or install software - by P3TER - 09-26-2021, 01:04 AM
RE: Can't update or install software - by bcnaz - 09-26-2021, 03:43 PM
RE: Can't update or install software - by P3TER - 09-26-2021, 05:14 PM
RE: Can't update or install software - by kqlnut - 09-27-2021, 02:19 AM
RE: Can't update or install software - by bcnaz - 11-23-2021, 07:16 PM
RE: Can't update or install software - by P3TER - 12-26-2021, 04:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PinePhone AND/OR PinePhone Pro Arch Complete Install and Setup mikehenson 2 2,269 01-14-2024, 08:43 AM
Last Post: shifras
  How to install arch with FDE user641 3 795 01-11-2024, 10:18 PM
Last Post: Kevin Kofler
  How to find software app, on Arch Phosh? general_lee 5 1,954 10-15-2023, 10:12 PM
Last Post: Kevin Kofler
  PPKB certain keys not working after kernel update ragreenburg 20 13,041 06-11-2023, 03:19 AM
Last Post: lectrode
  unable to install applications dln949 5 1,535 06-08-2023, 08:38 PM
Last Post: Conjada
  satellite doesn't work after update shulamy 1 887 05-17-2023, 10:34 PM
Last Post: Kevin Kofler
  Latest update broke my install user641 8 3,737 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,165 12-24-2022, 11:00 PM
Last Post: shulamy
  Waydroid on Arch Linux ARM install guide? tk1107 3 5,610 10-08-2022, 07:46 AM
Last Post: PineFone
  Help to execute script to install arch with FDE user641 5 3,547 07-03-2022, 09:25 PM
Last Post: RTP

Forum Jump:


Users browsing this thread: 1 Guest(s)