Yep, two issues: network problem, and sources problem.
Hopefully you weren't using DHCP, would mean the network stack is buggy and/or DNS resolving is buggy (could still be the case, my oh my).
If after all this below we can't get it fixed, maybe the the easiest and fastest for you would be to unmount the hard disk drive, connect it to a third-party PC with Linux (SATA-to-USB adapters or hard disk docks are great for this), copy your /home/{user} directory (don't forget hidden files and other files you want to keep), format and install a fresh LMDE again. Dependency and package downgrade, well it's possible but I'm unsure you want to get through this. Let's see:
Network:run this command to check the actual status:
- Code: Select all
sudo ifconfig
Since you're wired, the interesting item is "eth0" (or "eth1"). A running interface should show a "inet adr {IP} Bcast {broadcast} mask {mask}".
To see the content of the config file:
- Code: Select all
cat /etc/network/interfaces
Normally the network is taken over by Network-Manager.
Since we can't count on DHCP, you may need to enter the network information manually. This is a common case in GNU/Linux server systems, but may not apply to desktop systems: everyone, correct me if I'm wrong:
first, backup of the actual file:
- Code: Select all
sudo cp /etc/network/interfaces /etc/network/interfaces.backup
Then, edit the file:
- Code: Select all
sudo vi /etc/network/interfaces
So this is Vi. It's a text editor in command line.
First, press the letter "i" to swap to INSERTION mode. With the arrow keys, go to the lines:
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
For both of them, add a "#" before:
#allow-hotplug eth0
##NetworkManager#iface eth0 inet dhcp
With Enter, add new lines. Type this (this is an example, you have to change the information according to your network, you can look in Windows if you're unsure):
- Code: Select all
auto eth0
iface eth0 inet static
address 192.168.0.10
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
When done, press the "Esc" key to exit the INSERTION mode, then type ":w" + Enter: this writes the file to the disk. Then, type ":q" + Enter to exit.
sudo reboot, to restart the PC. Check again if the ping fails.
*if you can get everything fixed and GUI starting again, restore the original interfaces file:
- Code: Select all
sudo rm /etc/network/interfaces && sudo mv /etc/network/interfaces.backup /etc/network/interfaces
Sources:Your APT sources seem messy. A running network would be great here.
- Code: Select all
sudo vi /etc/apt/sources.list
Change the content so it's like this:
- Code: Select all
deb http://packages.linuxmint.com/ debian main upstream import
deb http://debian.linuxmint.com/latest/ testing main contrib non-free
deb http://debian.linuxmint.com/latest/security/ testing/updates main contrib non-free
deb http://debian.linuxmint.com/latest/multimedia/ testing main non-free
Then (and if your network is running fine), refresh the update list:
- Code: Select all
sudo apt-get update
.. and install/upgrade what is needed:
- Code: Select all
sudo apt-get dist-upgrade
