Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Problems with sudo apt update

  1. #11
    Join Date
    Jun 2006
    Beans
    40

    Re: Problems with sudo apt update

    That is the content of the file you passed to cat -- /etc/apt/sources.list -- which is one of the places where the repositories you get your software from are configured. You can read about repositories here.

    Concerning the original issue, it is now being tracked in https://bugs.launchpad.net/ubuntu/xe...b/+bug/1780442

  2. #12
    Join Date
    May 2018
    Location
    Bologna
    Beans
    22
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Problems with sudo apt update

    Quote Originally Posted by gumbeto View Post
    That is the content of the file you passed to cat -- /etc/apt/sources.list -- which is one of the places where the repositories you get your software from are configured. You can read about repositories here.

    Concerning the original issue, it is now being tracked in https://bugs.launchpad.net/ubuntu/xe...b/+bug/1780442
    Thanks for your reply.
    Maybe they fix the problem, 10 minutes ago I gave the same command and it found a new update that seems has fix the problem:
    Code:
    sudo apt-get upgrade 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Calculating upgrade... Done
    The following packages will be upgraded:
      linux-firmware
    1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    Need to get 50,0 MB of archives.
    After this operation, 142 kB of additional disk space will be used.
    Do you want to continue? [Y/n] 
    Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-firmware all 1.157.20 [50,0 MB]
    Fetched 50,0 MB in 14s (3.380 kB/s)                                            
    (Reading database ... 360974 files and directories currently installed.)
    Preparing to unpack .../linux-firmware_1.157.20_all.deb ...
    Unpacking linux-firmware (1.157.20) over (1.157.19) ...
    Setting up linux-firmware (1.157.20) ...
    update-initramfs: Generating /boot/initrd.img-4.13.0-45-generic
    I want to wait some other reboot before marked the thread as Solved.

    EDIT: It's not true this doesn't fix the problem! I don't know what i've to do...
    Last edited by simone93; July 9th, 2018 at 09:08 PM.
    Asus x541uv, memory 11.6 Gb, processor Intel® Core™ i7-6500U CPU @ 2.50GHz × 4, graphics Intel® HD Graphics 520 (Skylake GT2), os type 64-bit

  3. #13
    Join Date
    Oct 2009
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Problems with sudo apt update

    The AskUbuntu issue linked earlier was wrongly closed as a duplicate: this issue is different. It is actually answered on askubuntu.com/a/1053018/28943: manually edit /var/cache/app-info/xmls/fwupd.xml to replace the & by & in the offending line (in line 265 in my version). The file simply contains an unescaped & and is thus invalid XML.

    I haven't bothered to figure out where that file comes from. It's not installed directly by any package; it is probably constructed by appstream, but possibly by copying wrongly escaped XML from another file.

  4. #14
    Join Date
    Jun 2006
    Beans
    40

    Re: Problems with sudo apt update

    Unfortunately the file reverts to the original &-containing string when fwupdmgr refreshes.

  5. #15
    Join Date
    May 2018
    Location
    Bologna
    Beans
    22
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Problems with sudo apt update

    Is there a way to make this change permanently?

    Thanks for your reply!
    Asus x541uv, memory 11.6 Gb, processor Intel® Core™ i7-6500U CPU @ 2.50GHz × 4, graphics Intel® HD Graphics 520 (Skylake GT2), os type 64-bit

  6. #16
    Join Date
    Jun 2006
    Beans
    40

    Re: Problems with sudo apt update

    The problem seems to be gone for me, I think a fix was released that still requires manually deleting the faulty xml file, but I was messing with my system a bit before and I am not sure if it could be related. What happens if you do

    Code:
    $ sudo mv /var/cache/app-info/xmls/fwupd.xml ~/fwupd.xml.bck
    $ sudo fwupdmgr refresh
    $ sudo appstreamcli refresh
    Does it still complain?

  7. #17
    Join Date
    Mar 2014
    Beans
    31

    Re: Problems with sudo apt update

    Here's my output from running the commands:

    Code:
    $ sudo mv /var/cache/app-info/xmls/fwupd.xml ~/fwupd.xml.bck
    $ sudo fwupdmgr refresh
    $ sudo appstreamcli refresh
    AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml

  8. #18
    Join Date
    May 2018
    Location
    Bologna
    Beans
    22
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Problems with sudo apt update

    Quote Originally Posted by Tony_Bennett View Post
    Here's my output from running the commands:

    Code:
    $ sudo mv /var/cache/app-info/xmls/fwupd.xml ~/fwupd.xml.bck
    $ sudo fwupdmgr refresh
    $ sudo appstreamcli refresh
    AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml
    The same for me
    Asus x541uv, memory 11.6 Gb, processor Intel® Core™ i7-6500U CPU @ 2.50GHz × 4, graphics Intel® HD Graphics 520 (Skylake GT2), os type 64-bit

  9. #19
    Join Date
    Jun 2006
    Beans
    40

    Re: Problems with sudo apt update

    OK, my bad, I forgot a couple of system restarts before, which totally messed up my conclusions...

    So, I was able to fix this by installing libappstream-glib8 from bionic. The procedure is below. If you find yourself in one of the cases marked ABORT, just undo all the steps you did so far and run sudo apt update at the end (I don't expect that to happen though, they are just there as a safeguard).

    1. save a file called (say) future.list in dir /etc/apt/sources.list.d (you'll need sudo) with the following content:
      Code:
      deb mirror://mirrors.ubuntu.com/mirrors.txt bionic main
      deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-updates main
      deb mirror://mirrors.ubuntu.com/mirrors.txt bionic-security main
    2. save a file called (say) future.pref in dir [/etc/apt/preferences.d[/CODE] (you'll need sudo again) with the following content:
      Code:
      Package: *
      Pin: release a=bionic*
      Pin-Priority: 50
    3. run sudo apt update
    4. run apt list -u and confirm it returns only "Listing... Done". If it returns more stuff, ABORT (see above).
    5. run sudo apt install -assume-no -t=bionic libappstream-glib8. If, at this stage, apt claims that more is needed to satisfy dependencies than just replacing the old version with the new one, ABORT (see above).
    6. run sudo mv /var/cache/app-info/xmls/fwupd.xml ~/fwupd.xml.bck
    7. restart (I found this was required, probably to load the new shared library version and maybe restart some service. If you do try to skip it, remember to delete the xml before retrying.)
    8. run sudo fwupdmgr refresh
    9. run sudo appstreamcli refresh.


    At this point the problem should be fixed. You can leave everything as is (perhaps deleting ~/fwupd.xml.bck if you want). When you now upgrade your packages, packages whose bionic version is installed will receive bionic upgrades, but the rest will still be on xenial.

    Let me know what you find. Cheers

  10. #20
    Join Date
    Jul 2018
    Beans
    1

    Re: Problems with sudo apt update

    If your problem is this error message:
    AppStream system cache was updated, but problems were found: Metadata files have errors: /var/cache/app-info/xmls/fwupd.xml
    Try:
    Code:
    gksudo gedit /var/cache/app-info/xmls/fwupd.xml
    and look at line 265 of the file fwupd.xml.
    If there you find this (note bolded):
    <checksum filename="Firmware_SF30&SN30_Pro_V1.26.dat"
    Change it to:
    <checksum filename="Firmware_SF30&amp;SN30_Pro_V1.26.dat"
    That is, replace the character "&" with the five characters "&amp;".

    To be safe, you may want to make a backup of the file first, before editing it.

    Further reference is here.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •