I fixed the malformed line error in my sources list, and was able to run the sudo apt-get update
and sudo apt-get upgrade
. When I ran the update these errors came up:
W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/trusty-getdeb/apps/binary-amd64/Packages 403 Forbidden
W: Failed to fetch http://archive.getdeb.net/ubuntu/dists/trusty-getdeb/apps/binary-i386/Packages 403 Forbidden
E: Some index files failed to download. They have been ignored, or old ones used instead.
What should I do?
Then, when I ran the upgrade, these errors showed up:
The following packages were automatically installed and are no longer required:
account-plugin-windows-live libnvpair1 libupstart1 libuutil1 libzfs2
libzpool2 thunderbird-locale-en thunderbird-locale-en-gb
thunderbird-locale-en-us
Use 'apt-get autoremove' to remove them.
The following packages have been kept back:
cups-filters cups-filters-core-drivers grub-common grub-efi-amd64
grub-efi-amd64-bin grub-efi-amd64-signed grub2-common libldb1
liboxideqt-qmlplugin liboxideqtcore0 liboxideqtquick0 libsmbclient
libwbclient0 linux-headers-generic linux-headers-lowlatency
linux-image-lowlatency linux-lowlatency linux-signed-generic
linux-signed-image-generic openjdk-7-jre openjdk-7-jre-headless
oxideqt-codecs-extra python-cupshelpers python-ldb python-samba qpdf samba
samba-common samba-common-bin samba-dsdb-modules samba-libs
samba-vfs-modules shim shim-signed smbclient system-config-printer-gnome
ubuntu-minimal winbind
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
What should I do? Thanks!
/etc/apt/sources.list
but you can also create files in/etc/apt/sources.list.d/
(this is empty on new install, any here are added by users). You just edit those files, for me that'ssudo vim /etc/apt/sources.list
as I like vim as my editor. You can replace 'vim' with any editor you like, eg. nano, joe.. All lines with "#" are treated as comments, thus allowing me to note why & when I add something, or why I commented something (i usually comment instead of deleting as easy to back-out if it was a mistake). For duplicates you comment one. – guiverc Dec 06 '18 at 20:36