LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I executed sudo apt update and this error occurs, what happened? (https://www.linuxquestions.org/questions/linux-newbie-8/i-executed-sudo-apt-update-and-this-error-occurs-what-happened-4175669255/)

86153c1d-3ebd-4643-8885 02-09-2020 09:07 AM

I executed sudo apt update and this error occurs, what happened?
 
Here's a screenshot: https://upload.vaa.red/2soUGZ#447b2a...e1669369366d9c

Today I updated my system and this came out, today I deleted one .swp and one .swo .sources.list files because I created them unintentionally. Could it be related?

pan64 02-09-2020 09:13 AM

this is not an error, but warning(s).
What you deleted is a swap file used by vi, and created automatically when you started to edit some files. You can safely delete them (if vi is already closed).
Additionally .swo means you opened the same file twice in the same time with vi.

86153c1d-3ebd-4643-8885 02-09-2020 09:24 AM

Quote:

Originally Posted by pan64 (Post 6088009)
this is not an error, but warning(s).
What you deleted is a swap file used by vi, and created automatically when you started to edit some files. You can safely delete them (if vi is already closed).
Additionally .swo means you opened the same file twice in the same time with vi.

A warning for what?


I have already deleted both files. Thanks for the explanation!

pan64 02-09-2020 09:36 AM

some files are missing, but probably not important at all. I have no idea if you really need them.

86153c1d-3ebd-4643-8885 02-09-2020 09:42 AM

Quote:

Originally Posted by pan64 (Post 6088023)
some files are missing, but probably not important at all. I have no idea if you really need them.

How can I know if they are important? Maybe I fucked up.

pan64 02-09-2020 09:54 AM

rtl_nic is a realtek network chip, so if your network is based on something else you are ok.
i915 is made by intel and most probably a graphic chip.
and I think you can install these firmware files (if you need), just you need to look for the package.

hazel 02-09-2020 09:58 AM

You need to understand the difference between a warning and an error. A warning message means that something has been found which could cause problems but the program has concluded normally. An error means that something is definitely wrong, usually something that has caused a program to crash.

Errors need to be fixed, but warnings only need to be evaluated to decide if anything needs to be done about them. These particular warnings concern missing firmware (proprietary programs that some hardware needs to function properly). The first lot of messages are for various Realtek network cards, the second lot for Intel graphics chips that use the i915 driver. All you need to do about these is to check if your particular network card and video chip require them. If so, you can install the firmware. If not, the messages don't matter.

ondoho 02-09-2020 02:22 PM

86153c1d-3ebd-4643-8885, I cannot see the image.
Can't you just paste the text here?
Don't worry, it does not contain information that identifies you.

86153c1d-3ebd-4643-8885 02-10-2020 07:30 PM

Quote:

Originally Posted by pan64 (Post 6088034)
rtl_nic is a realtek network chip, so if your network is based on something else you are ok.
i915 is made by intel and most probably a graphic chip.
and I think you can install these firmware files (if you need), just you need to look for the package.

My PC doesn't have a wi-fi thing to support it, I connect via ethernet, so I guess I'm okay. Mmm, I guess that if everything is working then I don't need them?

86153c1d-3ebd-4643-8885 02-10-2020 07:32 PM

Quote:

Originally Posted by hazel (Post 6088036)
You need to understand the difference between a warning and an error. A warning message means that something has been found which could cause problems but the program has concluded normally. An error means that something is definitely wrong, usually something that has caused a program to crash.

Errors need to be fixed, but warnings only need to be evaluated to decide if anything needs to be done about them. These particular warnings concern missing firmware (proprietary programs that some hardware needs to function properly). The first lot of messages are for various Realtek network cards, the second lot for Intel graphics chips that use the i915 driver. All you need to do about these is to check if your particular network card and video chip require them. If so, you can install the firmware. If not, the messages don't matter.

Thanks a lot, I'll try to pay more attention next time when a warning comes by! Could you please tell me how can I check if my video chip requires those? BTW, now when I run sudo apt update/upgrade the message is no longer there.

86153c1d-3ebd-4643-8885 02-10-2020 07:34 PM

Quote:

Originally Posted by ondoho (Post 6088108)
86153c1d-3ebd-4643-8885, I cannot see the image.
Can't you just paste the text here?
Don't worry, it does not contain information that identifies you.

Now when I run the commands the warnings are not there and they are quire large for me to write them down, are you sure you can see them? It's not because of a privacy concern, my username on my OS is user because I knew I was going to need a lot of troubleshooting, lol.

hazel 02-11-2020 04:58 AM

The warnings were a side effect of an apt script creating a new initramfs image for booting your system. This happens whenever there is an upgrade of some piece of basic software that occurs on the initramfs. Most updates don't involve this step. The warnings will recur intermittently in the future so it's worth checking whether they apply to you.

Realtek make ethernet as well as wifi cards (I have a Realtek ethernet card on my machine) but as far as I know, those don't usually require extra firmware. lspci -v should show what card you have and what driver it uses.

The quickest way to identify your video card driver is to look in /var/log/Xorg.0.log which is the record of your last X session.

Alternatively, you could just install the firmware packages. That's the lazy solution;) but it won't do any harm.

ondoho 02-13-2020 01:01 AM

Quote:

Originally Posted by hazel (Post 6088668)
The warnings were a side effect of an apt script creating a new initramfs image for booting your system.

Did the warnings look something like this:
Code:

$*sudo mkinitcpio -p linux-lts
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 5.4.19-1-lts
  -> Running build hook: [colors]
  -> Running build hook: [consolefont]
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetect
==> Starting build: 5.4.19-1-lts
  -> Running build hook: [colors]
  -> Running build hook: [consolefont]
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful

I've had these 2 warnings every single time the initramfs had to be rebuilt on this system, for years. They're harmless, unless you KNOW that you use these modules.

I do wish people would just post code instead of linking to weird sites.

hazel 02-13-2020 04:49 AM

Quote:

Originally Posted by ondoho (Post 6089396)
I do wish people would just post code instead of linking to weird sites.

They're not always weird sites. A lot of people use imgur which is pretty well known. But the basic principle remains and should be taken account of by all newbies:tisk:: you should not post an image if you can collect actual text from a log. Images are difficult for many people to read.

The only situation in which an image would be appropriate is when you have early boot errors/panics that appear on the screen but never get into any log. Even then, if you have time to transcribe them, that would be better.

ondoho 02-15-2020 03:55 AM

^ fair enough, I should give unknown image uploaders a chance.
I tried to click that first link. It would show me nothing But a huge banner saying
attempting to decrypt...
That is weird.


All times are GMT -5. The time now is 12:49 AM.