Software, Technology, Ubuntu

Ubuntu Linux – Debugging the Error: the list of sources could not be read

After installing and quickly uninstalling some software on my Ubuntu machine I saw an error on each boot saying: linux the list of sources could not be read. 

It also included the name that was causing the problem abc.list. In my case it was a file called waydroid.list that was causing the trouble after I had tried installing their software but realizing I didn’t want it.

To see the problem that’s happening you can open a command prompt and type:

sudo apt-get check

This should show some details of the problem.

To debug:

in Ubuntu open a command prompt and write:

ls /etc/apt/sources.list.d/

Now you should see a list returned including the offending .list file. In my case if was waydroid.list

To remove this list you’ll need to type its path. In my case the removal statement was like this:

sudo rm -r /etc/apt/sources.list.d/waydroid.list

Once this is complete you can check that the problem file was removed using this:

ls /etc/apt/sources.list.d/

After this once you reboot, the problem should be gone. At least that was my experience and it worked very well.

Advertisement
Database, Programming, SQL, SQL Server, SQL Server 2000, SQL Server 2005, SQL Server 2008, SQL Server 2012, SQL Tips, Technology, Transact-SQL, tSQL

TSQL Query to Compare Row Counts of Tables in a Local and a Remote Database

This is a fun thought exercise…. in MS SQL Server, use a linked server to compare how many rows are in each table of a backup development server with how many rows are in the actual production server. This would be especially relevant if you just did a database backup from prod into development and now want to see a few hours later on what tables the most growth is happening on…

Continue reading “TSQL Query to Compare Row Counts of Tables in a Local and a Remote Database”
Database, Programming, SQL, SQL Server 2005, SQL Server 2008, SQL Server 2012, SQL Tips, Technology, Transact-SQL, tSQL

TSQL How to Query the Recovery Model and Log Location of all Databases

Seeing where each database and log lives on your server and how large the file is

If you are maintaining the databases on a server, you’ll likely want a comprehensive view of what each database’s recovery model is as well as where the database and log files are stored. An added bonus is seeing how large each file has grown so you can shrink them if necessary. You can see this all in one place using a handy query…

Continue reading “TSQL How to Query the Recovery Model and Log Location of all Databases”