Wednesday, December 21, 2016

14.04 - Apt-get update failing

Hello I am new to ubuntu. I am running 14.04 Trusy. I have tried to search around but the solutions I have found has not helped. I get some errors when running apt-get update:



Hit http://ftp.rz.tu-bs.de trusty Release        
Hit http://ftp.rz.tu-bs.de trusty/main Sources
Hit http://ftp.rz.tu-bs.de trusty/restricted Sources
Hit http://ftp.rz.tu-bs.de trusty/universe Sources
Hit http://ftp.rz.tu-bs.de trusty/multiverse Sources

Fetched 743 kB in 2s (368 kB/s)
W: Failed to fetch http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/dists/trusty-updates/InRelease Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/dists/trusty-backports/InRelease Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/dists/trusty-security/InRelease Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://ppa.launchpad.net/nginx/stable/ubuntu/dists/trusty/InRelease Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/trusty/Release Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/trusty/Release Unable to find expected entry 'partner/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/dists/trusty/Release Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)
W: Failed to fetch http://mirror-eu.packages.ros.org/ros/ubuntu/dists/trusty/Release Unable to find expected entry 'main/binary-aarch64/Packages' in Release file (Wrong sources.list entry or malformed file)



I therefore found that you should look in the sources.list file:



# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty main restricted
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty main restricted


## Major bug fix updates produced after the final release of the
## distribution.
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-updates main restricted
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty universe

deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty universe
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-updates universe
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty multiverse

deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty multiverse
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-updates multiverse
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-backports main restricted universe multiverse

deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-backports main restricted universe multiverse

deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-security main restricted
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-security main restricted
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-security universe
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-security universe
deb http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-security multiverse
deb-src http://ftp.rz.tu-bs.de/pub/mirror/ubuntu-packages/ trusty-security multiverse

## Uncomment the following two lines to add software from Canonical's

## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
# respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main


deb http://packages.ros.org/ros/ubuntu trusty main


Extra



I searched around on the name aarch64, which refers to arm. This I do not understand since my install should from this link, specifically AMD64. Can somebody help me with this issue?

Cannot open software sources after removing a PPA

After deleting a ppa entry in the sources.list file, I was not able to open the software sources application. Opening the software centre is fine. I tried running gksudo software-properties-gtk and got the follwong message:




 SoftwareProperties.__init__(self, options=options, datadir=datadir)
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 96, in __init__
self.reload_sourceslist()
File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py", line 580, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 91, in get_sources
raise NoDistroTemplateException("Error: could not find a "
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template



Would appreciate if you can let me know how to solve this problem.

11.10 - How to edit autostart applications?


How can I reach the UI to configure the autostart applications in Ubuntu 11.10? Please don't tell me, I have to do it using the terminal or creating a starter on my own and please don't tell me, it is gone!



Try using the Startup Applications application.
You can find it either by searching for it (both Unity and Gnome Shell allow you to quickly search for applications), or in the Other section of applications (this section you can access again from either Gnome Shell or Unity but also from the classic applications menu in Gnome 2.x)


Applications may be startup in other ways, such as commands in scripts and etc. It is probable that the application's startup you are trying to edit is not accessible from the application I suggested to you.


chromium - I need Flash Player 11.3.0 or higher

I need to take some online tests for school.
This website tells me I need Flash Player 11.3.0 or higher. As far as I can see that is not yet avaible for Linux.
I use Ubuntu 12.04 LTS and Chromium. Is there a way I can work around it?




Greetz. Rob.

12.04 - How can I uninstall Nvidia proprietary drivers?





OK, so I know that other people asked exactly the same... but I just moved from Nouveau to Nvidia using this tutorial, and the new drivers are really, really, really slow. How can I remove Nvidia drivers and recover the open ones?




  1. If you added things to the blacklist, remove them now from the list with sudo gedit /etc/modprobe.d/blacklist.conf

  2. Now close your session and press Ctrl + Alt + F1 in the login menu.


  3. Login with your username and password.

  4. Run sudo stop lightdm, which will stop X11 (including the standard login menu!)

  5. Now exec sudo nvidia-uninstall

  6. Press Yes to restore from a backup.

  7. You may find errors related with non-empty folders. Ignore them.

  8. If you removed Nouveau, run sudo apt-get install xserver-xorg-video-nouveau

  9. Now you can finish with sudo reboot


installation - Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe driver tg3 will not install?


aries@aries-laptop:~$ sudo ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device
aries@aries-laptop:~$ lspci -nn
00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1705]
00:01.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:9641]
00:01.1 Audio device [0403]: ATI Technologies Inc Device [1002:1714]

00:04.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Device [1022:1709]
00:06.0 PCI bridge [0604]: Advanced Micro Devices [AMD] Device [1022:170b]
00:11.0 SATA controller [0106]: Advanced Micro Devices [AMD] Device [1022:7800] (rev 40)
00:12.0 USB Controller [0c03]: Advanced Micro Devices [AMD] Device [1022:7807] (rev 11)
00:12.2 USB Controller [0c03]: Advanced Micro Devices [AMD] Device [1022:7808] (rev 11)
00:13.0 USB Controller [0c03]: Advanced Micro Devices [AMD] Device [1022:7807] (rev 11)
00:13.2 USB Controller [0c03]: Advanced Micro Devices [AMD] Device [1022:7808] (rev 11)
00:14.0 SMBus [0c05]: Advanced Micro Devices [AMD] Device [1022:780b] (rev 13)
00:14.2 Audio device [0403]: Advanced Micro Devices [AMD] Device [1022:780d] (rev 01)
00:14.3 ISA bridge [0601]: Advanced Micro Devices [AMD] Device [1022:780e] (rev 11)

00:14.4 PCI bridge [0604]: Advanced Micro Devices [AMD] Device [1022:780f] (rev 40)
00:16.0 USB Controller [0c03]: Advanced Micro Devices [AMD] Device [1022:7807] (rev 11)
00:16.2 USB Controller [0c03]: Advanced Micro Devices [AMD] Device [1022:7808] (rev 11)
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1700] (rev 43)
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1701]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1702]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1703]
00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1704]
00:18.5 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1718]
00:18.6 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1716]

00:18.7 Host bridge [0600]: Advanced Micro Devices [AMD] Device [1022:1719]
01:00.0 Ethernet controller [0200]: Broadcom Corporation NetLink BCM57785 Gigabit Ethernet PCIe [14e4:16b5] (rev 10)
01:00.1 SD Host controller [0805]: Broadcom Corporation Device [14e4:16bc] (rev 10)
01:00.2 System peripheral [0880]: Broadcom Corporation Device [14e4:16be] (rev 10)
01:00.3 System peripheral [0880]: Broadcom Corporation Device [14e4:16bf] (rev 10)
02:00.0 Network controller [0280]: Broadcom Corporation Device [14e4:4358]

Tuesday, December 20, 2016

Suspend problems Dell XPS 15 - Ubuntu 13.04

I have a Dell XPS 15 laptop with an external display through the mini-displayport, and I am completely unable to get the suspend functionality working correctly with Ubuntu 13.04 Raring Ringtail.



With any of the 3.8 kernels, suspending the computer seems to work correctly for about a half second, and then the fan starts up to full blast, and the activity light stays on (instead of the slow blink that indicates sleep mode).



With 3.9, I can initiate suspend correctly, but the laptop only displays a blank screen upon resume.



The 3.10 kernel suspends and resumes correctly except for the mini-displayport crashing. My external monitor goes into power saving mode after the computer wakes up from suspend and stays that way until I restart the computer, even after restarting lightdm.




3.11 encounters other errors when resuming.



This is getting extremely frustrating. Any help or insight would be much appreciated. Thanks!

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...