-1

I am editing the question with my attempt on running sudo apt-get upgrade

I can not upgrade the files after running that command. It tells me that it found files to upgrade but says 'failed to fetch' every file to found. Does that clarify my post? Still new to this sorry and my college professor is the issue of not explaining clearly and lack of knowledge.

mchid
  • 43,546
  • 8
  • 97
  • 150
  • 3
    Most folks use sudo apt-get upgrade. Is there a particular reason you are skipping the sudo part? It's an important part. – user535733 Sep 24 '21 at 01:09
  • 1
    Advice: DON'T blindly copy shell commands from some random online instructions. Understand what they do first. Taking the time to understand will make whatever you are trying to accomplish both maintainable and much more satisfying. – user535733 Sep 24 '21 at 01:10
  • The sudo elevates your privileges (super user do) which is necessary to make changes to your box (upgrading packages can make lots of changes; those maybe official changes or someone using sudo may have added 3rd party & potential harmful sources to be changed as well - the need of sudo should make you stop & think about the action before you do it) – guiverc Sep 24 '21 at 01:17
  • 2
    Does this answer your question? What does "sudo apt-get update" do? – N0rbert Sep 24 '21 at 06:46
  • It helps us if you post the exact error. Copy and paste the output into your question and please format it as code. Thanks. – mchid Sep 29 '21 at 23:22
  • I am trying to but it continues to tell me the file is to big, it is just a screenshot from my laptop too. – Nick071 Sep 29 '21 at 23:24
  • sounds like you may be offline ... launch your browser and confirm you can connect to the net ... if offline then setup your wifi or ... – Scott Stensland Sep 29 '21 at 23:26
  • "Failed to fetch http://ports.ubuntu.com/ubuntu-ports/pool/main/x/xorg-server/xwayland_1.20,11-1ubuntu1~20.04.2_arm64.deb Temporary failure resolving 'ports.ubuntu.com' " – Nick071 Sep 29 '21 at 23:29
  • okay you're correct its that im not connected to wifi im going to try and fix it right now – Nick071 Sep 29 '21 at 23:32
  • Please add additional details to your question, and make your question complete with facts. You've tagged Lubuntu, but your last comment refers to http://ports.ubuntu.com/ubuntu-ports/pool/main/x/xorg-server/ and mentions a different architecture to Lubuntu (where amd64 only is downloadable) for arm64 so these missing details should be provided in your question. If you're using amd64 then why have you ports in your sources? If you're using arm64 you haven't mentioned it & are your sources correct for that architecture (no amd64 sources wrongly added?) – guiverc Sep 30 '21 at 00:22

1 Answers1

0

Some commands (such as apt/apt-get (by default on Ubuntu) require you to prefix them with sudo, so that they run as the superuser (Ubuntu equivalent of a Windows administrator, ish). There are a few exceptions, such as if you are running as a root shell (indicated usually by your prompt ending with a # instead of a $, but running sudo apt-get upgrade should resolve the issue.

cocomac
  • 3,394