So, I foolishly went ahead and tried to upgrade from 10.0 to 10.1 without backing up. I'm not concerned about that though because it is not an important install. If worse comes to worst I grab my files off the machine and do a fresh install.
My machine is hardwired to my router which has the default gateway of 192.168.0.1. I use the LXDE desktop with GDM login manager.
I successfully upgraded the kernel to 10.1 (binary download, did not build from source). The machine would boot up fine and into my desktop environment. The command
I tried a few methods to upgrade which returned with failure. One method was ports-mgmt/portmaster. Unfortunately I made a mistake with portmaster that uninstalled and cleaned perhaps 4 or more ports, the names of which I do not know. I stopped it before it uninstalled any more. I'm not sure if this has to do with the problems that I am having now, but possibly.
The last method I tried, which seemed to work best, was with ports-mgmt/portupgrade. The command I used was
Many of the ports failed to upgrade. After repeating the command a few times without any success I issued the command
After restarting the machine it could not load my X environment (GDM). There was no output displayed, just a black screen. I tried rebooting a couple times without success. So, I booted into single user mode as root and mounted the filesystem as rewritable:
So I logged in to my account (
So, I rebooted again and mounted the filesystem as read-write. But now I could not connect to the FreeBSD mirrors nor the internet. I tested an internet connection with wget:
Sorry if there are any typos in that code, I did not copy and paste.
Here is some network information from my system. Please let me know if there is anything else I should provide:
/etc/resolv.conf (this matches my Linux installation's /etc/resolv.conf file, which is working on a different box):
My working Linux's /etc/resolv.conf:
ifconfig output:
Again, I'm sorry if there are any typos. I will double check it.
I cannot run lspci as a linked object is missing:
I suppose a missing library could be part of my issue, but I would think that I would get a similar message to the above.
If dmesg output is needed I will try to get it though it will probably be difficult.
Thanks for any help and again, it is not super important that I get this fixed as I can do a fresh install (though I prefer not to). I tried to follow the upgrading instructions in the handbook but perhaps I didn't not follow it closely enough.
My machine is hardwired to my router which has the default gateway of 192.168.0.1. I use the LXDE desktop with GDM login manager.
I successfully upgraded the kernel to 10.1 (binary download, did not build from source). The machine would boot up fine and into my desktop environment. The command
uname -a would display "FreeBSD 10.1-RELEASE". I then decided to upgrade my ports. While doing so I decided that I would upgrade and rebuild ALL of them, even though documentation says it's only necessary to do so after upgrading to a major release version. I wanted to upgrade them all because I knew there were some errors on my system and I hoped the upgrades would fix them.I tried a few methods to upgrade which returned with failure. One method was ports-mgmt/portmaster. Unfortunately I made a mistake with portmaster that uninstalled and cleaned perhaps 4 or more ports, the names of which I do not know. I stopped it before it uninstalled any more. I'm not sure if this has to do with the problems that I am having now, but possibly.
The last method I tried, which seemed to work best, was with ports-mgmt/portupgrade. The command I used was
$ sudo portupgrade -GBafn followed by $ sudo portupgrade -GBaf (I'm going off of memory, but I'm pretty sure those are the exact commands I used). The first command I used to preview what would happen without actually making any changes. It seemed to finish okay so I went ahead with the actual upgrade.Many of the ports failed to upgrade. After repeating the command a few times without any success I issued the command
$ sudo freebsd-update install then rebooted the system: sudo shutdown -r now.After restarting the machine it could not load my X environment (GDM). There was no output displayed, just a black screen. I tried rebooting a couple times without success. So, I booted into single user mode as root and mounted the filesystem as rewritable:
$ mount -f -o rw /dev/ada0p2 / (not sure if that is the correct way to do it). It gave the output "WARNING: / not properly dismounted" but it seemed to work okay as I was able to write to the filesystem.So I logged in to my account (
$ login) and began the upgrade process again ( $ sudo portupgrade -GBa). I can't remember if I used the "force" switch (-f) this time as I think I was just trying to upgrade the ones that were out of date at this point, but I don't remember for sure. It seemed to be working fine but said that many of the ports failed to upgrade at the end. It may have even said that all ports had failed, I can't remember.So, I rebooted again and mounted the filesystem as read-write. But now I could not connect to the FreeBSD mirrors nor the internet. I tested an internet connection with wget:
Code:
$ wget http://debreate.sourceforge.net/index.php
converted 'http://debreate.sourceforge.net/index.php' (US-ASCII) -> 'http://debreate.sourceforge.net/index.php' (UTF-8)
--2014-12-20 08:43:21-- http://debreate.sourceforge.net/index.php
Resolving debreate.sourceforge.net (debreate.sourceforge.net)... failed: hostname nor servname provided, or not known.
wget: unable to resolve host address 'debreate.sourceforge.net'
Here is some network information from my system. Please let me know if there is anything else I should provide:
/etc/resolv.conf (this matches my Linux installation's /etc/resolv.conf file, which is working on a different box):
Code:
# Generated by resolvconf
search PK5001Z
nameserver 192.168.0.1
nameserver 205.171.2.226
Code:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.1
nameserver 205.171.2.226
search PK5001Z
ifconfig output:
Code:
$ ifconfig
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE>
ether 00:19:b9:28:a5:2a
nd6 options=21<PERFORNUD,AUTO_LINKLOCAL>
media: Ethernet autoselect
lo0: flags=8008<LOOPBACK,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
n6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
I cannot run lspci as a linked object is missing:
Code:
$ lspci
Shared object "libpci.so" not found, required by "lspci"
I suppose a missing library could be part of my issue, but I would think that I would get a similar message to the above.
If dmesg output is needed I will try to get it though it will probably be difficult.
Thanks for any help and again, it is not super important that I get this fixed as I can do a fresh install (though I prefer not to). I tried to follow the upgrading instructions in the handbook but perhaps I didn't not follow it closely enough.