-1

Is it that i am missing cretin functions that Debian had, this is just Ubuntu on a 64 bit Intel processor when running any apt scrip like an sudo apt-get install

$ sudo apt-get install python-setuptools python-virtualenv python-dev

E: Malformed line 2 in source list /etc/apt/sources.list.d/100-ubnt-unifi.list (type) E: The list of sources could not be read. E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?

I had this same problem with my ARM processor and the dpkg files but it was different. what going on because because i am not sure if it just missing something about the Debian interface or maybe some bash scripting but i would like to know .

i saw that the fix isnt hard but last time i did a fix from what i saw cold be done i lost the ability to go on youtube. but that just might be the internet i have that allows me to surch for the answer. i cant really connect to the wifi, i need an inscription key. it on the wifi box but i not sure where it is located in the house and i am not quite sure if i need it. im leaving soon, nut im just looking for a apt-get fix for any other insulation of any 64 bit programs to run like virtual box.

--update--

i already did something to where the text editor doesnt come up the same but you are supposed to put these command first.

sudo cp /etc/apt/source.list /etc/apt/source.list.old

sudo cat -n /etc/apt/source.list | grep 2

sudo gedit /etc/apt/source.list

on the second command right where it says "grep 2" you are supposed to put the number of lines you have that are malformed into the command. and i believe you are supposed to put a number sine where the link starts in the test editor followed but a space and then hit save. on your terminal it should say something like this..

$ sudo gedit /etc/apt/source.list

** (gedit:3452): WARNING **: 21:16:30.900: Set document metadata failed: Setting attribute metadata::gedit-position not supported

once it does that exit out of text editor and start a new terminal and start a apt-update && upgrade to see if you can source code an update. but beacuse i fail to put in the right code at the right time i was wondering if i could just copy and past what it should look like in the text editor and save after i put in a

$ sudo gedit /etc/apt/source.list

after the command or maybe i should just uninstall and reinstall the OS to see if i can fix my issue.

$ sudo cp /etc/apt/source.list /etc/apt/source.list.old cp: cannot stat '/etc/apt/source.list': No such file or directory

$ sudo cat -n /etc/apt/source.list | grep 2 cat: /etc/apt/source.list: No such file or directory

$ sudo gedit /etc/apt/source.list

right
  • 9

1 Answers1

2

Read the error messages.

The first one tells you which file, and which line has the error. Fix that error.

The second error was caused by the first error, and will probably go away when you fix the first error.

The third and fourth error messages indicate a different problem.

Either you're running a package installer program in a different terminal, or as a detached process, or you killed an installer process so rudely that it didn't release the look.

You can see if any current process has the lock file open by

sudo lsof /var/lib/dpkg/lock-frontend

If a process has the file open, consider killing it.

If no process is shown, simply remove the file.

sudo rm /var/lib/dpkg/lock-frontend

If rm can't find the file, the process that had the file open ("holding the lock") has released the lock and exited. This is the temporally unavalible part of the messages.

waltinator
  • 37,856